[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAP245DXfm-1U34UOsFio7ZQwoiEaecW9cC4ghmXrzTJPVbs0dA@mail.gmail.com>
Date: Tue, 7 May 2019 15:59:34 +0530
From: Amit Kucheria <amit.kucheria@...aro.org>
To: David Binderman <dcb314@...mail.com>
Cc: "andy.gross@...aro.org" <andy.gross@...aro.org>,
"david.brown@...aro.org" <david.brown@...aro.org>,
"rui.zhang@...el.com" <rui.zhang@...el.com>,
"edubezval@...il.com" <edubezval@...il.com>,
"daniel.lezcano@...aro.org" <daniel.lezcano@...aro.org>,
"linux-arm-msm@...r.kernel.org" <linux-arm-msm@...r.kernel.org>,
"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: linux-5.1/drivers/thermal/qcom/tsens-v2.c:54]: bad assignment ?
On Tue, May 7, 2019 at 3:40 PM David Binderman <dcb314@...mail.com> wrote:
>
> Hello there,
>
>
> linux-5.1/drivers/thermal/qcom/tsens-v2.c:54]: (style) Assignment 'last_temp=last_temp2' is redundant with condition 'last_temp==last_temp2'.
>
> Source code is
>
>
> if (last_temp == last_temp2)
> last_temp = last_temp2;
>
> Suggest code rework.
>
> Regards
>
> David Binderman
Hi David,
Thanks for the report. That was an old version of the function from
downstream. I've now refactored it and resubmitted it here:
https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1922871.html
Regards,
Amit
Powered by blists - more mailing lists