Skip to content

Commit e036771

Browse files
Paulo AlcantaraSteve French
authored andcommitted
cifs: get rid of dead check in smb2_reconnect()
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>
1 parent 09ba47b commit e036771

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/cifs/smb2pdu.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon,
310310
case SMB2_READ:
311311
case SMB2_WRITE:
312312
case SMB2_LOCK:
313-
case SMB2_IOCTL:
314313
case SMB2_QUERY_DIRECTORY:
315314
case SMB2_CHANGE_NOTIFY:
316315
case SMB2_QUERY_INFO:

0 commit comments

Comments
 (0)