• YueHaibing's avatar
    cifs: remove set but not used variable 'server' · 29cbfa1b
    YueHaibing authored
    Fixes gcc '-Wunused-but-set-variable' warning:
    
    fs/cifs/smb2pdu.c: In function 'smb311_posix_mkdir':
    fs/cifs/smb2pdu.c:2040:26: warning:
     variable 'server' set but not used [-Wunused-but-set-variable]
    
    fs/cifs/smb2pdu.c: In function 'build_qfs_info_req':
    fs/cifs/smb2pdu.c:4067:26: warning:
     variable 'server' set but not used [-Wunused-but-set-variable]
    
    The first 'server' never used since commit bea851b8 ("smb3: Fix mode on
    mkdir on smb311 mounts")
    And the second not used since commit 1fc6ad2f ("cifs: remove
    header_preamble_size where it is always 0")
    Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    29cbfa1b
smb2pdu.c 118 KB