Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0360d605 authored by Pavel Shilovsky's avatar Pavel Shilovsky Committed by Steve French
Browse files

CIFS: Remove extra indentation in cifs_sfu_type

parent dd120671
Loading
Loading
Loading
Loading
+50 −47
Original line number Diff line number Diff line
@@ -404,7 +404,7 @@ int cifs_get_inode_info_unix(struct inode **pinode,
}

static int
cifs_sfu_type(struct cifs_fattr *fattr, const unsigned char *path,
cifs_sfu_type(struct cifs_fattr *fattr, const char *path,
	      struct cifs_sb_info *cifs_sb, unsigned int xid)
{
	int rc;
@@ -416,6 +416,7 @@ cifs_sfu_type(struct cifs_fattr *fattr, const unsigned char *path,
	char buf[24];
	unsigned int bytes_read;
	char *pbuf;
	int buf_type = CIFS_NO_BUFFER;

	pbuf = buf;

@@ -441,16 +442,19 @@ cifs_sfu_type(struct cifs_fattr *fattr, const unsigned char *path,
			 cifs_sb->local_nls,
			 cifs_sb->mnt_cifs_flags &
				CIFS_MOUNT_MAP_SPECIAL_CHR);
	if (rc == 0) {
		int buf_type = CIFS_NO_BUFFER;
	if (rc) {
		cifs_put_tlink(tlink);
		return rc;
	}

	/* Read header */
	io_parms.netfid = netfid;
	io_parms.pid = current->tgid;
	io_parms.tcon = tcon;
	io_parms.offset = 0;
	io_parms.length = 24;
		rc = CIFSSMBRead(xid, &io_parms, &bytes_read, &pbuf,
				 &buf_type);

	rc = CIFSSMBRead(xid, &io_parms, &bytes_read, &pbuf, &buf_type);
	if ((rc == 0) && (bytes_read >= 8)) {
		if (memcmp("IntxBLK", pbuf, 8) == 0) {
			cifs_dbg(FYI, "Block device\n");
@@ -491,7 +495,6 @@ cifs_sfu_type(struct cifs_fattr *fattr, const unsigned char *path,
		rc = -EOPNOTSUPP; /* or some unknown SFU type */
	}
	CIFSSMBClose(xid, tcon, netfid);
	}
	cifs_put_tlink(tlink);
	return rc;
}