diff options
author | Steve French <smfrench@gmail.com> | 2013-10-13 23:32:30 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-11-02 13:52:48 -0400 |
commit | f10d9ba405ed250d647d6d810f8fc5ff2f62f370 (patch) | |
tree | c91b2a81b13ba4433a6fd79f3f764d99b5bcb46c /fs/cifs | |
parent | c7f508a99bf229963915e79a603e0618d1d2ba76 (diff) |
Fix unused variable warning when CIFS POSIX disabled
Fix unused variable warning when CONFIG_CIFS_POSIX disabled.
fs/cifs/ioctl.c: In function 'cifs_ioctl':
>> fs/cifs/ioctl.c:40:8: warning: unused variable 'ExtAttrMask' [-Wunused-variable]
__u64 ExtAttrMask = 0;
^
Pointed out by 0-DAY kernel build testing backend
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/ioctl.c b/fs/cifs/ioctl.c index 029867078aff..ba54bf6ab116 100644 --- a/fs/cifs/ioctl.c +++ b/fs/cifs/ioctl.c | |||
@@ -37,7 +37,6 @@ long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg) | |||
37 | struct cifsFileInfo *pSMBFile = filep->private_data; | 37 | struct cifsFileInfo *pSMBFile = filep->private_data; |
38 | struct cifs_tcon *tcon; | 38 | struct cifs_tcon *tcon; |
39 | __u64 ExtAttrBits = 0; | 39 | __u64 ExtAttrBits = 0; |
40 | __u64 ExtAttrMask = 0; | ||
41 | __u64 caps; | 40 | __u64 caps; |
42 | 41 | ||
43 | xid = get_xid(); | 42 | xid = get_xid(); |
@@ -54,6 +53,7 @@ long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg) | |||
54 | caps = le64_to_cpu(tcon->fsUnixInfo.Capability); | 53 | caps = le64_to_cpu(tcon->fsUnixInfo.Capability); |
55 | #ifdef CONFIG_CIFS_POSIX | 54 | #ifdef CONFIG_CIFS_POSIX |
56 | if (CIFS_UNIX_EXTATTR_CAP & caps) { | 55 | if (CIFS_UNIX_EXTATTR_CAP & caps) { |
56 | __u64 ExtAttrMask = 0; | ||
57 | rc = CIFSGetExtAttr(xid, tcon, | 57 | rc = CIFSGetExtAttr(xid, tcon, |
58 | pSMBFile->fid.netfid, | 58 | pSMBFile->fid.netfid, |
59 | &ExtAttrBits, &ExtAttrMask); | 59 | &ExtAttrBits, &ExtAttrMask); |