Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3616749pxk; Tue, 29 Sep 2020 01:26:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgX2m+VNnZtT1BPKYME6XihQF1fWV3f0rV1WZP3ThgCWNsWF5VoPq6eWUit92SN5uUfufu X-Received: by 2002:a17:906:1485:: with SMTP id x5mr2761067ejc.163.1601367997391; Tue, 29 Sep 2020 01:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601367997; cv=none; d=google.com; s=arc-20160816; b=gp5N/eLV173U5xLdiFksmVxdH9s/b1JoWyZg+IQjTOzNy0WX7GOXzo4GIb48XpIoL2 XhhQOxnH8viTtG1VAJ1Evry82hSywduHj1jcHv4MVNsd4R8MlW/y56zDPN35C0viNcb6 Ckp32W1bS8PBhJsYhgeyWs+rfcgleLgiwC90wMJPLcsEdDQbpE1an18vnKMsb+7SmnWO H241mYPhPqlNJkxPkRf3nERy4dV07JnOJAeikLvujHdEeHZHVGdmJrRh0o4wOR/MkQqX 9tvDH9R4gbIL90pxUU8LUSMYFKorYBUN8OmWOjtN7h5Pv2EWTFtin4/5Grl0jFjxX547 JwtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:illegal-object:cc:to :references:in-reply-to:from:subject:content-transfer-encoding :mime-version:dmarc-filter:sender:dkim-signature; bh=Mmer3bugB2xRynpfernBH9+GUGVN6Z0ZBCnOlNL98jk=; b=haiqwILwRiGnebpi0mTPRHLrxG+B+dvrWIc8t1pkwQK04FMBA0DA2cPNwga7gAqRKy Ihn+wjJimqFOvkweFfv3df65FbyUhKztJWHgnxux8FKpxWaBWUXJ/UqUrlOsXoNIpj6t 8I1lSCpSiEO8iVISdw2SHcwCNW/89hB/nL/4kKVnS1jRgnY8aVwOOi8fDN8c8+VL5kJL Sgk9bxTB17+i+giMZLDNrK4PhKMbVFXDZce9u3jFcCEzwtqZrYCkilkgLSISRjicxElN sz7nK+2oVpQcXZwU3UYQ/RAxxrRJkOJu2OsGs3vplLVxK0aquoGKs+C97Ksqx1cI4om9 fz6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=DzxxLE0G; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c12si2417144edy.146.2020.09.29.01.26.13; Tue, 29 Sep 2020 01:26:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=DzxxLE0G; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727650AbgI2IZs (ORCPT + 99 others); Tue, 29 Sep 2020 04:25:48 -0400 Received: from z5.mailgun.us ([104.130.96.5]:61905 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725765AbgI2IZr (ORCPT ); Tue, 29 Sep 2020 04:25:47 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1601367946; h=Date: Message-Id: Cc: To: References: In-Reply-To: From: Subject: Content-Transfer-Encoding: MIME-Version: Content-Type: Sender; bh=Mmer3bugB2xRynpfernBH9+GUGVN6Z0ZBCnOlNL98jk=; b=DzxxLE0GZS8xmGMDc9XszgVW9ihorQSF0CQWEgGFwOBOytFuHA996Fbtk9tNgfgPtpCeHlRB a5UuSpWTYCVVrTN5Q0huxp3ylnkwnexmiB2EkoCtbUJZ/wdue2xMYZcwCln/B1BQ7ZjQxG8Z f+sGoYsvGVQUXm3IX6IPDrjKz8A= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-west-2.postgun.com with SMTP id 5f72ef8a9a923ee7a55e7860 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 29 Sep 2020 08:25:46 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 4D176C433FE; Tue, 29 Sep 2020 08:25:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,BAYES_00, MISSING_DATE,MISSING_MID,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0E720C433F1; Tue, 29 Sep 2020 08:25:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0E720C433F1 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wl3501_cs: Remove unnecessary NULL check From: Kalle Valo In-Reply-To: <20200926174558.9436-1-alex.dewar90@gmail.com> References: <20200926174558.9436-1-alex.dewar90@gmail.com> To: Alex Dewar Cc: unlisted-recipients:; (no To-header on input) Alex Dewar , "David S. Miller" , Jakub Kicinski , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Illegal-Object: Syntax error in Cc: address found on vger.kernel.org: Cc: unlisted-recipients:; (no To-header on input)Alex Dewar ^-missing end of address User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.5.2 Message-Id: <20200929082546.4D176C433FE@smtp.codeaurora.org> Date: Tue, 29 Sep 2020 08:25:46 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Alex Dewar wrote: > In wl3501_detach(), link->priv is checked for a NULL value before being > passed to free_netdev(). However, it cannot be NULL at this point as it > has already been passed to other functions, so just remove the check. > > Addresses-Coverity: CID 710499: Null pointer dereferences (REVERSE_INULL) > Signed-off-by: Alex Dewar Patch applied to wireless-drivers-next.git, thanks. 1d2a85382282 wl3501_cs: Remove unnecessary NULL check -- https://patchwork.kernel.org/patch/11801615/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches