Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1986883pxk; Sat, 19 Sep 2020 08:40:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycA4rbjJqlY2ChUQ4C0EkLchjGIWF1f8o0Q0qNtRsOusrpGbCcXPSPMorM9kRWSNfocANV X-Received: by 2002:a50:ccd2:: with SMTP id b18mr43842006edj.51.1600530011249; Sat, 19 Sep 2020 08:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600530011; cv=none; d=google.com; s=arc-20160816; b=n1hz9AHeJhnGr3wym/glA2CiLGbTbOXDvQ4mz50zI5L2DBmPy8/Tdb1by3ImpOfxb1 /L2Sz0MNjyYjraeLNLcWPI3HfdwI2oMZyboOWG6Fg69OmPA39YijOwwhpvAGGUA69h/B ytqRYLT7J+aNqvpmVkKuCWloMdqi6fb2dGqxK7rzZs91rIGYIYGoAxarotNtGo2lXTCo 3RvhtAzYXl13Ji2QPSGcFxpNuNl6WnCFIIG4xmCl0crDSSd6Bb/tqmOY2tEgu+hT69c1 +usOIOKVnEg91A9LB9l2abvXq2D76ZqoBD38few/HhMcOe5E/fy/VRNiKgaq+J2s+Har Z9mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=WtzIgf90LQnbD5TFgjAIgcWj6lw5edgjQtXRXBz1tPo=; b=b8vDhesGcxozAOHmHvuUtTzCyVxlkq8/OptXqt60jbkgYbaMfiznliJrrul58M/5i9 Pc8splVWmuLXXeN2bq4K0RCLajtRHQ+G0aF3uEYruUKwFJkoOp07n/RmGKmVV3fGodB9 gQjYpBOkFsgXVWmBKlLCMHbL3f2bpgwNMs4UYxs/DfSTEvKI5XZ5pt0ocl9Rt2aXynsM YhYKWXjFeAGUhYWMtureXae6R1ebH3+i1ZomWLrMEuiCNjtalK76fdxPd4nbaH3FkVVw uwf/m86nMIsrHEMyy5baB/lyf/iWD8d4ouWreWaQr//3o8+yN3IMVq8J1BWbc/x6IuJl EjKQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g7si4312801edu.333.2020.09.19.08.39.45; Sat, 19 Sep 2020 08:40:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726670AbgISPgU (ORCPT + 99 others); Sat, 19 Sep 2020 11:36:20 -0400 Received: from saturn.retrosnub.co.uk ([46.235.226.198]:39046 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726636AbgISPgT (ORCPT ); Sat, 19 Sep 2020 11:36:19 -0400 X-Greylist: delayed 162165 seconds by postgrey-1.27 at vger.kernel.org; Sat, 19 Sep 2020 11:36:19 EDT Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) by saturn.retrosnub.co.uk (Postfix; Retrosnub mail submission) with ESMTPSA id 7A3F39E0056; Sat, 19 Sep 2020 16:36:15 +0100 (BST) Date: Sat, 19 Sep 2020 16:36:13 +0100 From: Jonathan Cameron To: William Breathitt Gray Cc: Jonathan Cameron , Dan Carpenter , Kamel Bouhara , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] counter: microchip-tcb-capture: check the correct variable Message-ID: <20200919163613.7984587c@archlinux> In-Reply-To: <20200727122825.GA5614@shinobu> References: <20200727112316.GG389488@mwanda> <20200727122825.GA5614@shinobu> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 27 Jul 2020 08:28:25 -0400 William Breathitt Gray wrote: > On Mon, Jul 27, 2020 at 02:23:16PM +0300, Dan Carpenter wrote: > > This should be testing "regmap" instead of "priv->regmap". The > > "priv->regmap" variable is always zero so it's not an error pointer. > > > > Fixes: 106b104137fd ("counter: Add microchip TCB capture counter") > > Signed-off-by: Dan Carpenter > > Acked-by: William Breathitt Gray Seems I applied this one a while back but never replied to this thread. Sorry about that! Jonathan > > > --- > > The commit 106b104137fd ("counter: Add microchip TCB capture counter") > > doesn't use the correct patch prefix. This is a common mistake for the > > the first commit which adds the driver. There is no kernel wide > > standard for patch prefixes so it's difficult for people sending fixes > > to know the correct prefix should be. > > > > drivers/counter/microchip-tcb-capture.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/counter/microchip-tcb-capture.c b/drivers/counter/microchip-tcb-capture.c > > index f7b7743ddb94..b7b252c5addf 100644 > > --- a/drivers/counter/microchip-tcb-capture.c > > +++ b/drivers/counter/microchip-tcb-capture.c > > @@ -320,8 +320,8 @@ static int mchp_tc_probe(struct platform_device *pdev) > > } > > > > regmap = syscon_node_to_regmap(np->parent); > > - if (IS_ERR(priv->regmap)) > > - return PTR_ERR(priv->regmap); > > + if (IS_ERR(regmap)) > > + return PTR_ERR(regmap); > > > > /* max. channels number is 2 when in QDEC mode */ > > priv->num_channels = of_property_count_u32_elems(np, "reg"); > > -- > > 2.27.0 > >