From patchwork Sun Jun 3 11:11:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varsha Rao X-Patchwork-Id: 10445241 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 11FD7603B4 for ; Sun, 3 Jun 2018 11:12:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F394428749 for ; Sun, 3 Jun 2018 11:12:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E736C2875E; Sun, 3 Jun 2018 11:12:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA6D528749 for ; Sun, 3 Jun 2018 11:12:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751235AbeFCLMH (ORCPT ); Sun, 3 Jun 2018 07:12:07 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:37733 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751013AbeFCLMF (ORCPT ); Sun, 3 Jun 2018 07:12:05 -0400 Received: by mail-pl0-f66.google.com with SMTP id 31-v6so7981106plc.4; Sun, 03 Jun 2018 04:12:05 -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; bh=W5wujwhuRghZKsceuBDLFF/hijxyQZ5Z/WjjSiwNzqs=; b=frdbsuNHfhxxZCtWLBAT9M3AjeZdCQfOuvSyKf92mzTFV4NgIhbTjnq3+V85V9OtPY j+UtG3Zong3ErLU4tUwmfXV3dQPK5eJrUoxz3OAwc4ZD/xDtDNt7nop72NuZcTOcInff 4b0Va3jEY5RJD6IXxe4ccMWo9Qd4XQIoGmHrbhBAKcLA/BMrD3gwLgEewY2ULeThfjg9 1zxUWDmju/oK5H+ALopewyjvpyk365AWjl5pIm6T1kYxwslONFM54Pl5SkFZqjynZnJf u6uBOEi1O7R+yGG8Wa86zNwvb4yRhTludthXxzbxG6KUrlJ5/BkSbnONs3Hp0UNrwFRK 5/Mw== 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; bh=W5wujwhuRghZKsceuBDLFF/hijxyQZ5Z/WjjSiwNzqs=; b=ox6888cAlE5e8NK/nCVaCL/SZAyqfJkEIbW8HZZHRmnqkuNKsmNOehMzKdaSNBQFuF 3S1DdHuTh/OnN5sEU3Vdfa7gy1CZquBPbtytQaJByHMm14lEq0JoyoeGR+0Ps9O8nJg1 jgpWrGTHLtIomXmB7kkKKMxiU681mEGZT9NLOUKrC9GYUUr6d8e3cZx5clESsqdwdUfH We74cILVFhHfsyTzfJnNtkPxlxNrhpRO0Q2xgNq4cSIcFY9iJlBYEyax/E58Gr1MmVL7 mhoUxDqvAiU8W/lBZT7MU/3a46WiL/K98/VLgJhGjKpbTS1QRC/OGdZNVbGdD0w6F/T8 vv8w== X-Gm-Message-State: ALKqPwc37pDU0ahms/ujfF45LV56SbaQpOibc9PSk1nYH8QVX8fy4IZl gBpgm4LDn9YUZFSruxT8B3c= X-Google-Smtp-Source: ADUXVKIxJmmlLWxyMyM2VjtZ/RH3iampG3NMf8ypobIidDWzxKhHRnWzyWZFlUXINglzgOzxCJtOFQ== X-Received: by 2002:a17:902:4301:: with SMTP id i1-v6mr17782424pld.280.1528024325093; Sun, 03 Jun 2018 04:12:05 -0700 (PDT) Received: from localhost.localdomain ([117.192.158.77]) by smtp.googlemail.com with ESMTPSA id q24-v6sm72669707pff.9.2018.06.03.04.12.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Jun 2018 04:12:04 -0700 (PDT) From: Varsha Rao To: Stanislav Yakovlev , Kalle Valo , "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Nicholas Mc Guire , Lukas Bulwahn Cc: Varsha Rao Subject: [PATCH] net: ipw2x00: Replace NULL comparison with !priv Date: Sun, 3 Jun 2018 16:41:35 +0530 Message-Id: <20180603111136.4262-1-rvarsha016@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove extra parentheses and replace NULL comparison with !priv, to fix clang warning of extraneous parentheses and check patch issue. Following coccinelle script is used to fix it. @disable is_null,paren@ expression e; statement s; @@ if ( - (e==NULL) +!e ) s Signed-off-by: Varsha Rao --- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c index 87a5e414c2f7..7d55bb09413b 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c @@ -7112,7 +7112,7 @@ static u32 ipw_qos_get_burst_duration(struct ipw_priv *priv) { u32 ret = 0; - if ((priv == NULL)) + if (!priv) return 0; if (!(priv->ieee->modulation & LIBIPW_OFDM_MODULATION))