From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Date: Fri, 12 Jun 2020 17:38:38 +0000 Subject: Re: [PATCH] coresight: cti: Fix error handling in probe Message-Id: <20200612173838.GH4282@kadam> List-Id: References: <20200612121047.GF4282@kadam> <20200612121133.GA1139533@mwanda> <6c59bdbc15714b089d256ad50aee58cb@bfs.de> In-Reply-To: <6c59bdbc15714b089d256ad50aee58cb@bfs.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Walter Harms Cc: Mathieu Poirier , Suzuki K Poulose , Alexander Shishkin , Greg Kroah-Hartman , "kernel-janitors@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Mike Leach On Fri, Jun 12, 2020 at 02:11:16PM +0000, Walter Harms wrote: > Hi Dan, > > nit picking in cti_pm_release() > > IMHO this should be done in 2 steps: > if (--nr_cti_cpu = 0) > -> > --nr_cti_cpu ; > if ( nr_cti_cpu = 0) The first way is sort of the more canonical way to write it... By far. regards, carpenter