diff mbox

[7/7] cifs: remove unneeded check of null checking in if condition

Message ID 003a01cfbc63$178d63c0$46a82b40$@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Namjae Jeon Aug. 20, 2014, 10:39 a.m. UTC
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com>
---
 fs/cifs/smb2pdu.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Comments

Steve French Aug. 21, 2014, 12:16 a.m. UTC | #1
merged into cifs-2.6.git for-next

On Wed, Aug 20, 2014 at 5:39 AM, Namjae Jeon <namjae.jeon@samsung.com> wrote:
> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
> Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com>
> ---
>  fs/cifs/smb2pdu.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
> index ab366e5..844c651 100644
> --- a/fs/cifs/smb2pdu.c
> +++ b/fs/cifs/smb2pdu.c
> @@ -1404,8 +1404,7 @@ SMB2_close(const unsigned int xid, struct cifs_tcon *tcon,
>         rsp = (struct smb2_close_rsp *)iov[0].iov_base;
>
>         if (rc != 0) {
> -               if (tcon)
> -                       cifs_stats_fail_inc(tcon, SMB2_CLOSE_HE);
> +               cifs_stats_fail_inc(tcon, SMB2_CLOSE_HE);
>                 goto close_exit;
>         }
>
> --
> 1.7.7
>
diff mbox

Patch

diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
index ab366e5..844c651 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -1404,8 +1404,7 @@  SMB2_close(const unsigned int xid, struct cifs_tcon *tcon,
 	rsp = (struct smb2_close_rsp *)iov[0].iov_base;
 
 	if (rc != 0) {
-		if (tcon)
-			cifs_stats_fail_inc(tcon, SMB2_CLOSE_HE);
+		cifs_stats_fail_inc(tcon, SMB2_CLOSE_HE);
 		goto close_exit;
 	}