From patchwork Thu Mar 7 21:37:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 10843871 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5721817E4 for ; Thu, 7 Mar 2019 21:38:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40D462F5F4 for ; Thu, 7 Mar 2019 21:38:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34C882F5F7; Thu, 7 Mar 2019 21:38:04 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E64802F5F4 for ; Thu, 7 Mar 2019 21:38:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=w273kA13vipIaipB2UoZaJp6IY83RTgY76kOEt1DQRI=; b=N2A9eNTQ04iLX3 znGawIlEKIiS7ox8Ber5JSPUSTOI975wcVedR7rjBb5oGEmhl4tURaCUa2i2kr2kTAr30PjVPqrgc NYkKLqwaM2oMekIblCPaV61tBZrnsRHaq1qW9AIkviTRrpQhxCF4MYQ38efUN03IO+wyA6TiZjVwg YcUh/sTjvF7TcthssGEpZY/a5ifS0pjxYgT6jcO5kPBud/MUz1SUheOmkdseABKd7fVGoOaYCMc+n +kYvKiGKS7CPHckWIGkXKZHBRAE/0WHdKWym61tlaL6RHqGDsKjtwTu7oNFrt9JVdhZm8PlyQ+lVn zZvcHO4Hbc5DCwLuZBjw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h20iI-0004xV-Th; Thu, 07 Mar 2019 21:38:02 +0000 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h20iF-0004wt-NS for ath10k@lists.infradead.org; Thu, 07 Mar 2019 21:38:01 +0000 X-IronPort-AV: E=Sophos;i="5.58,453,1544482800"; d="scan'208";a="372414296" Received: from abo-58-107-68.mrs.modulonet.fr (HELO hadrien) ([85.68.107.58]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Mar 2019 22:37:43 +0100 Date: Thu, 7 Mar 2019 22:37:43 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Kalle Valo Subject: [PATCH] ath11k: fix itnull.cocci warnings Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_133800_035925_06C0E326 X-CRM114-Status: UNSURE ( 9.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kbuild-all@01.org, ath10k@lists.infradead.org Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: kbuild test robot Iterator variable bound on line 976 cannot be NULL. Generated by: scripts/coccinelle/iterators/itnull.cocci Fixes: 258bbf525e65 ("ath11k: add driver") Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git ath11k-bringup head: e7daa3ec639f390e383dae0db9e6b143bcc7b5bc commit: 258bbf525e652e244aa8b2331f55fda573fbe926 [3/42] ath11k: add driver :::::: branch date: 5 hours ago :::::: commit date: 4 weeks ago Please take the patch only if it's a positive warning. Thanks! dp_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/wireless/ath/ath11k/dp_rx.c +++ b/drivers/net/wireless/ath/ath11k/dp_rx.c @@ -974,7 +974,7 @@ struct htt_ppdu_stats_info *ath11k_dp_ht struct htt_ppdu_stats *ppdu_stats = NULL; list_for_each_entry(ppdu_info, &ar->ppdu_stats_info, list) { - if (ppdu_info && ppdu_info->ppdu_id == ppdu_id) + if (ppdu_info->ppdu_id == ppdu_id) return ppdu_info; }