Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2457709imm; Sun, 3 Jun 2018 04:12:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJEBW1BTyoa8v7WJ72SXyioddqyyE51y5eGCO3wiDGEcGp9jNWEMEOJiIvwBsRutKymsk+y X-Received: by 2002:a65:4249:: with SMTP id d9-v6mr14240099pgq.362.1528024366125; Sun, 03 Jun 2018 04:12:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528024366; cv=none; d=google.com; s=arc-20160816; b=NiCyJZhyVAL9a/O2bSaYFni2osFcywOKBRBE+dzIsP26q+06Y/c4WipqF8VYL1knFu ls8Ozxw9gzFVjh0LsDNWTxt6/9BqwMw0T/M5oqjLPVRZAfhZ3J9r+XKISeQrdM8/M6Yd BinQfHyVvpdLDcQiy8wLhUkk6CXQJzfM3JXAsdmLkW+3L6BHnZhE8LHvX1H9NaUSDjmO NYbPVhf3gwQuWaV4lKN1PGiZA+B2mvolRAb114fXAcz7Jj3gNtynWch/tw+37CHCDRNx T4PfltYanlGkXBa1VLJDnykIdYgOS1iPe5/MEAyZ2TFBdYhWn5Pi5OIwyntx2Ku3gdX8 Z4Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=W5wujwhuRghZKsceuBDLFF/hijxyQZ5Z/WjjSiwNzqs=; b=tiuESLTucGPYTrzQzivFifrN0T0B8OwWria6IwSVBqbbyFm9ASBrowDkzrYAniDDrP ZxFr4ZvxplkRrOy+XU+2kEikRh1EU4LnepMOBfVeNqAPY9WxMQsJfo9gY2ZVvLMI7XAE Jc9lJLiPtPkwKYzL6WfXyQJ5EYX6gC+AF3By0DmKireRdH+ym1kS8xbrFL+F3pS9uIoL +469Ad7mjxMNOqNrH89aLkjOLSe5dPzmlek1hVN27SfRKm3YQ86YYfTN1bJtkojHu4cU fGYkBx5mqUr8oeVT9L9jqByKSsOSxTbfxI/sDz1rdmhzLQS3Inj9RQ+N++aB9ACMqaZm GkYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=frdbsuNH; 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 f186-v6si8309924pfg.194.2018.06.03.04.12.29; Sun, 03 Jun 2018 04:12:46 -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=frdbsuNH; 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 S1751315AbeFCLMH (ORCPT + 99 others); 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-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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)) -- 2.17.0