From patchwork Wed Aug 20 10:39:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Namjae Jeon X-Patchwork-Id: 4748941 Return-Path: X-Original-To: patchwork-cifs-client@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 265EFC033A for ; Wed, 20 Aug 2014 10:40:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6EEB120155 for ; Wed, 20 Aug 2014 10:40:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 818092014A for ; Wed, 20 Aug 2014 10:40:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752317AbaHTKkB (ORCPT ); Wed, 20 Aug 2014 06:40:01 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:60946 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751730AbaHTKkA (ORCPT ); Wed, 20 Aug 2014 06:40:00 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NAL00APAPMNMR80@mailout4.samsung.com> for linux-cifs@vger.kernel.org; Wed, 20 Aug 2014 19:39:59 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.116]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 5A.95.13863.FFA74F35; Wed, 20 Aug 2014 19:39:59 +0900 (KST) X-AuditID: cbfee690-b7f526d000003627-72-53f47aff8d9d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 5C.25.04943.FFA74F35; Wed, 20 Aug 2014 19:39:59 +0900 (KST) Received: from DONAMJAEJEO06 ([10.88.104.63]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NAL00272PMNZJ00@mmp1.samsung.com>; Wed, 20 Aug 2014 19:39:59 +0900 (KST) From: Namjae Jeon To: 'Steve French' Cc: 'Shirish Pargaonkar' , 'Pavel Shilovsky' , linux-cifs@vger.kernel.org, Ashish Sangwan Subject: [PATCH 7/7] cifs: remove unneeded check of null checking in if condition Date: Wed, 20 Aug 2014 19:39:59 +0900 Message-id: <003a01cfbc63$178d63c0$46a82b40$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac+8Yw7fqwczqSI2RXeWgBYdEjuKjQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJIsWRmVeSWpSXmKPExsWyRsSkRPd/1Zdgg21L9SyWTrzEbPHi/y5m i3N7WS1ezGlgtHjz4jCbA6vHzll32T3m7upj9OjbsorR4/MmuQCWKC6blNSczLLUIn27BK6M S48OsxX8ZqnofHyMuYGxk6WLkZNDQsBE4s7UZUwQtpjEhXvr2boYuTiEBJYySsw7s5u5i5ED rOjTxVKI+CJGictvlrFAOH8ZJV4c+80EUsQmoC3xZ4soyCARAXWJz8v/MoPYzAIrGCUe/TIB sYUFgiVu7HjICmKzCKhKTN04AczmFbCU+HZ9GxOELSjxY/I9FoheLYn1O48zQdjyEpvXvGWG OFRBYsfZ14wQu/QkXqzYDFUjIrHvxTtGkNskBLaxS8zeOIcRYpmAxLfJh1ggnpGV2HQAao6k xMEVN1gmMIrNQrJ6FpLVs5CsnoVkxQJGllWMoqkFyQXFSelFJnrFibnFpXnpesn5uZsYgdF2 +t+zCTsY7x2wPsSYDLR+IrOUaHI+MFrzSuINjc2MLExNTI2NzC3NSBNW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8fpI264CddNLT27k3gzfmd0/eZNQxqNjJ7L4pshmz5xau0w0u2rO GyWW4oxEQy3mouJEAIBDiC/7AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- 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; }