cifsd: fix warning: variable 'total_ace_size' and 'posix_ccontext' set but not used
authorNamjae Jeon <namjae.jeon@samsung.com>
Sun, 21 Mar 2021 08:30:49 +0000 (17:30 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 11 May 2021 00:15:24 +0000 (19:15 -0500)
commit548e9ad317393b0439081454d2110f519431d5ef
tree4df2c5a901f45a330b9ba1893a0300d1169233c0
parent95fa1ce947d60b1bb4a0b6c92989cbe3612c1e68
cifsd: fix warning: variable 'total_ace_size' and 'posix_ccontext' set but not used

kernel test robot reported warnings:

   fs/cifsd/smbacl.c: In function 'parse_sec_desc':
>> fs/cifsd/smbacl.c:786:6: warning: variable 'total_ace_size' set but
not used [-Wunused-but-set-variable]
     786 |  int total_ace_size = 0, pntsd_type;
         |      ^~~~~~~~~~~~~~
--
   fs/cifsd/smb2pdu.c: In function 'smb2_open':
>> fs/cifsd/smb2pdu.c:3285:26: warning: variable 'posix_ccontext' set but
not used [-Wunused-but-set-variable]
    3285 |   struct create_context *posix_ccontext;
         |                          ^~~~~~~~~~~~~~

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/smb2pdu.c
fs/cifsd/smbacl.c