Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp796330pxk; Wed, 23 Sep 2020 17:01:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYe0431Y5jgNp84Ke6ya7lxS7AlltNcqZ5kbJDCwOIyDdnJnAJ47CUzmHg+GQAHyb2p6Uo X-Received: by 2002:a17:907:2456:: with SMTP id yw22mr1957406ejb.337.1600905676840; Wed, 23 Sep 2020 17:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600905676; cv=none; d=google.com; s=arc-20160816; b=QBt7Ad1AznSXBen3iFVlyseWLlKyBNNAntpymW+9m95DphSyXVoJELDseCEG7n4Vyg U/3KxI5s/POZMddnJW7rC2I4lwpYib5+lsaOiM3gb1Oe2R3HpcuGiMRGHw2rYu4d2Q5w Ff6YIHXHQtwDFutlS+PJhLdi1x+PvuV9NOiJh9VDTESUqp8VB22QDmltxISLBXD8+ZqZ mAwDGLOTcmsgvqBEhFGEcU5I/0Qh5FxYorHSG3IbWuVE7eHSV1JaR7kBNgGgK0jKyQG2 MA8h0Y7O3qJk/LxTdLzg87MfUkTIdJdnkGZG1IXYcQoaL7hgEqmRaZ8YMJhqUZnApDHW 06lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=P8bLkiASxkBQzjWWGDsNDLDOdgBjKhEVIc1PbwjgVEE=; b=jj/ndh4lQayrtOYRkIaW1tGwF6RdNQC5yZisjqS+5v1+qM8glZ6F+VT2i1IfRNgKyz IXBG6OYOZSND1M4CwrqdDlcrBdwqWQbCwbfsq6igvAHSbRZEa02dHil65H+yPB+kin9c 40YE90aJRgeQB0QkUqNs6PZ+9R9S9Ce9oJKAq8u7dae3OrwUUrczCRYBsLJlFrUJ9eU9 ggXnyZnSxTBssK8bb6n+48CHUS4vcYB1kk3TBFyM/6CoAyjf37udLqxbIYO97r6oBthm m8uA4XA6jmrs9ThiEz+co+X/Pq/4F9mWIYcUafO39vizajeTMtpqbYvQ0wX66A/SR6W+ Wjnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0aoH2b1z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 40si932146edr.35.2020.09.23.17.00.53; Wed, 23 Sep 2020 17:01:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0aoH2b1z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726681AbgIWX7h (ORCPT + 99 others); Wed, 23 Sep 2020 19:59:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:41562 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726562AbgIWX7g (ORCPT ); Wed, 23 Sep 2020 19:59:36 -0400 Received: from kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5B1AA214F1; Wed, 23 Sep 2020 23:59:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600905576; bh=P8bLkiASxkBQzjWWGDsNDLDOdgBjKhEVIc1PbwjgVEE=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=0aoH2b1z3M097Qabfw4OAP5v8kXH1OCN6tiHDyUO8KG602rao8m/VYDT+f3nnPICS mucYfXUpBLszFnCNs/HjLf0aHcWzyrpGxV9nyK2p5aBhbtmNelFhdwx42iIWjM2qnP C1+V/5A502sL2ubB5XND/IuMQ2YoNu1wdc45h5rU= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20200922191641.2305144-1-sboyd@kernel.org> References: <20200922191641.2305144-1-sboyd@kernel.org> Subject: Re: [PATCH] clk: tegra: Drop !provider check in tegra210_clk_emc_set_rate() From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Joseph Lo , Thierry Reding To: Michael Turquette , Stephen Boyd Date: Wed, 23 Sep 2020 16:59:35 -0700 Message-ID: <160090557506.310579.8483856369527418212@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Stephen Boyd (2020-09-22 12:16:41) > The provider variable is already dereferenced earlier in this function. > Drop the check for NULL as it is impossible. >=20 > Found with smatch >=20 > drivers/clk/tegra/clk-tegra210-emc.c:131 tegra210_clk_emc_set_rate() warn= : variable dereferenced before check 'provider' (see line 124) >=20 > Cc: Joseph Lo > Cc: Thierry Reding > Fixes: 0ac65fc946d3 ("clk: tegra: Implement Tegra210 EMC clock") > Signed-off-by: Stephen Boyd > --- Applied to clk-next