Skip to content

Commit d4a029d

Browse files
Namjae Jeonsmfrench
authored andcommitted
cifs: remove unneeded check of null checking in if condition
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com> Signed-off-by: Steve French <smfrench@gmail.com>
1 parent 7de975e commit d4a029d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎fs/cifs/smb2pdu.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,8 +1403,7 @@ SMB2_close(const unsigned int xid, struct cifs_tcon *tcon,
14031403
rsp = (struct smb2_close_rsp *)iov[0].iov_base;
14041404

14051405
if (rc != 0) {
1406-
if (tcon)
1407-
cifs_stats_fail_inc(tcon, SMB2_CLOSE_HE);
1406+
cifs_stats_fail_inc(tcon, SMB2_CLOSE_HE);
14081407
goto close_exit;
14091408
}
14101409

0 commit comments

Comments
 (0)