cifs: get rid of dead check in smb2_reconnect()
authorPaulo Alcantara <pc@manguebit.com>
Wed, 29 Mar 2023 20:14:23 +0000 (17:14 -0300)
committerSteve French <stfrench@microsoft.com>
Thu, 30 Mar 2023 22:56:30 +0000 (17:56 -0500)
The SMB2_IOCTL check in the switch statement will never be true as we
return earlier from smb2_reconnect() if @smb2_command == SMB2_IOCTL.

Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c

index 6bd2aa6..2b92132 100644 (file)
@@ -310,7 +310,6 @@ out:
        case SMB2_READ:
        case SMB2_WRITE:
        case SMB2_LOCK:
-       case SMB2_IOCTL:
        case SMB2_QUERY_DIRECTORY:
        case SMB2_CHANGE_NOTIFY:
        case SMB2_QUERY_INFO: