Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1653072imm; Wed, 6 Jun 2018 21:05:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI10U9FZKFvGfleKzhUx8Um4VpUoHstf3isveJOz4/brLE1gh/8NcoiP9Y+FTdjJY0b6+KR X-Received: by 2002:a17:902:7446:: with SMTP id e6-v6mr288189plt.382.1528344301619; Wed, 06 Jun 2018 21:05:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528344301; cv=none; d=google.com; s=arc-20160816; b=C2wCw6DKUQErgv9gwKwO8PJbpoc9dmjjN3EWLBObfP+AUMJhHKdqf9wFxxZuimGFzG +ccMMx4acy+OdPkB1vbCuDi0kFYHQnXAaI41i5F97ABQ+NRjWJJhx45da3MNAgXUiN0M O6n5dZ0niS9NPD/wePLgEXfFD+pguSOrFG5xnIhBvwK5lWRlZ9+LVqLY+FanaU4HroC4 lztIwmiDCZ3R7zP8AlKG9NTGb9Z1HBYLJgk+KMzXjCzJxt7oNV0HkX/iDGNxGXF8ybjf Y6V94ddZ2oAb3CxkLn7xxeRnd4go0oI/ji7b98J6Aw93FwHgFFrPh6TUgOePRaNqIynE 7RCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=fLl2ofzpSUPGaZwlx3JM9rdi+vVMd8jIdo41E+dCiVI=; b=DeM1tvclG0g7fU5/nL8jVVWOKeaNXVhGVg/bSjUHnqMZs/WE5TsTeQxqJ5w+iq040m SQmYOGZzrG8tltNlK7IAC+KzXyje4AnDYBMM4YA4TpXWyKo2RIFMYrW048J0FQ/MTefz KyA53pDK8KRmGZEB+GDC4QQMW0lVuIFyww0Mzu6gqmmk9MB4XLYouna+D3uUAlnEvh6z 47Ur7bXGZVEcZnDC83ffZnDW8ZDQIOfzOjqkB4whOZHm5re2eWnX7Y2bgMlZS+7kJ1Am t1nsrssRExCDEZQ802udpIgz18JHnr3B+KvlmRYslYBhKE/EI92BlWpaNX1cTcVG0e3V wunA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EQ3jrR7m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p61-v6si53640014plb.472.2018.06.06.21.04.46; Wed, 06 Jun 2018 21:05:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EQ3jrR7m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932352AbeFGDsV (ORCPT + 99 others); Wed, 6 Jun 2018 23:48:21 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:39749 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932118AbeFGDsT (ORCPT ); Wed, 6 Jun 2018 23:48:19 -0400 Received: by mail-pl0-f68.google.com with SMTP id f1-v6so5158340plt.6; Wed, 06 Jun 2018 20:48:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fLl2ofzpSUPGaZwlx3JM9rdi+vVMd8jIdo41E+dCiVI=; b=EQ3jrR7mKMTNIPYaPKnmAbHywyQ1+/40Bo3gqHSpKD+SsogXeDmloV9DVmP5m9ZXWg /sNwS8Y1TAMDTBHFnwU7hqdCIxw3g+cVJlDzDFXHAh7Gqg4oeOgKFqrtlkfBUY/2519Q VYpDhTRuoVSBBR8EcHQvhlGH0ZU0wcexOzifbJK0SptSTvykZRb1P23Jr7jZd0ZnWE32 5Bh4G9jIdvFe49l1+M/sl3lKBn8h8mBnrewV9hagLt1Jbwxc2AkctxFHcvhOXfmMcm7G HnAlLYPximu/K+3ai175h03QL8ENh4UMYbAjoy4qery9TNlO36FNLL0ZDys4WMzDNyXm z3jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fLl2ofzpSUPGaZwlx3JM9rdi+vVMd8jIdo41E+dCiVI=; b=izmhktpJxQB4q7VZqIwCMrADqN9TDl0zQjaKybn93xD5OUMakN/EH1u9/+d8TJniKH arFTXERp8+L2xtK/Zp0odk3r8WFuHNVBgPLOkL7EE/bBWSOAIrLpe85zHX0NOOVjLqSP Z/zR2Rn4ae8g+tm02T65oj120ctsbhsjj3+mZjXWjlrRV3QRSvh79FWmihKc8NhVlg3H DubW87ZXFRn9sGOc3VE3lAPubeqgZxncjL5RCOvlLgfhu7/CLJUW/aM5N7oqN2n+P0Nv DArzpMmWw/u1Zwzvys5ikNlcwtu/tEGCx1B2L6c1dWkx83J08NgIMahmNi4fKwhHiM6D B+Jg== X-Gm-Message-State: APt69E3tssNmITc9T1gNlG296wTE/+2ywyoNo6uIhcL/Th3sxuSEoAvq 1lFf9GcAdu6WaiZRwtCggbhP9g== X-Received: by 2002:a17:902:683:: with SMTP id 3-v6mr225023plh.291.1528343299167; Wed, 06 Jun 2018 20:48:19 -0700 (PDT) Received: from localhost.localdomain ([103.62.68.119]) by smtp.googlemail.com with ESMTPSA id p1-v6sm91994137pfp.137.2018.06.06.20.48.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Jun 2018 20:48:18 -0700 (PDT) From: Varsha Rao To: Sathya Prakash , Chaitra P B , Suganath Prabu Subramani , MPT-FusionLinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Nicholas Mc Guire , Lukas Bulwahn Cc: Varsha Rao Subject: [PATCH v2 1/2] message: fusion: Remove extra parentheses Date: Thu, 7 Jun 2018 09:18:05 +0530 Message-Id: <431da1b7c0fa06aea38acc22fed41963b6d44421.1528342739.git.rvarsha016@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To fix clang warning of extraneous parentheses and check patch issue, remove extra parentheses and replace x == NULL with !x. Signed-off-by: Varsha Rao --- Following coccinele script is used to fix the warnings. @disable is_null,paren@ expression e; statement s; @@ if ( - (e==NULL) +!e ) s Changes in v2: - Removed coccinelle script from commit message. drivers/message/fusion/mptbase.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index a746ccdd630a..5b98b7fca0f2 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c @@ -335,11 +335,11 @@ static int mpt_remove_dead_ioc_func(void *arg) MPT_ADAPTER *ioc = (MPT_ADAPTER *)arg; struct pci_dev *pdev; - if ((ioc == NULL)) + if (!ioc) return -1; pdev = ioc->pcidev; - if ((pdev == NULL)) + if (!pdev) return -1; pci_stop_and_remove_bus_device_locked(pdev); -- 2.17.0