* Re: [PATCH] mfd: asic3: Delete redundant variable definition
@ 2020-04-03 8:11 Markus Elfring
2020-04-03 9:25 ` Lee Jones
0 siblings, 1 reply; 3+ messages in thread
From: Markus Elfring @ 2020-04-03 8:11 UTC (permalink / raw)
To: Tang Bin, Lee Jones; +Cc: linux-kernel, kernel-janitors
> In this function, 'ret' is always assigned, even if 'pdata->leds'
> don't carry out,
I notice possibilities again to improve such a commit message.
> it has already been assigned a value in the above code, including '0',
The variable assignment will eventually be performed only in if branches.
> so it's redundant.
I suggest to reconsider this interpretation of the source code here.
Would you like to move the mentioned statement into an else branch
at the end?
Regards,
Markus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mfd: asic3: Delete redundant variable definition
2020-04-03 8:11 [PATCH] mfd: asic3: Delete redundant variable definition Markus Elfring
@ 2020-04-03 9:25 ` Lee Jones
2020-04-03 10:12 ` Markus Elfring
0 siblings, 1 reply; 3+ messages in thread
From: Lee Jones @ 2020-04-03 9:25 UTC (permalink / raw)
To: Markus Elfring; +Cc: Tang Bin, linux-kernel, kernel-janitors
On Fri, 03 Apr 2020, Markus Elfring wrote:
> > In this function, 'ret' is always assigned, even if 'pdata->leds'
> > don't carry out,
>
> I notice possibilities again to improve such a commit message.
>
>
> > it has already been assigned a value in the above code, including '0',
>
> The variable assignment will eventually be performed only in if branches.
>
>
> > so it's redundant.
>
> I suggest to reconsider this interpretation of the source code here.
> Would you like to move the mentioned statement into an else branch
> at the end?
Why wasn't this sent 'in reply to'? Something wrong with your mailer?
Now this messages is orphaned. Floating about in my inbox on its own.
--
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mfd: asic3: Delete redundant variable definition
2020-04-03 9:25 ` Lee Jones
@ 2020-04-03 10:12 ` Markus Elfring
0 siblings, 0 replies; 3+ messages in thread
From: Markus Elfring @ 2020-04-03 10:12 UTC (permalink / raw)
To: Lee Jones, Tang Bin; +Cc: linux-kernel, kernel-janitors
> Why wasn't this sent 'in reply to'? Something wrong with your mailer?
It seems that my mail program version contains still open issues for
the preservation of this information after a click on a web link.
mailto:tangbin%40cmss.chinamobile.com?In-Reply-To=%3C20200403042020.17452-1-tangbin@cmss.chinamobile.com%3E&Cc=lee.jones%40linaro.org%2Clinux-kernel%40vger.kernel.org&Subject=Re%3A%20%5BPATCH%5D%20mfd%3Aasic3%3ADelete%20redundant%20variable%20definition
> Now this messages is orphaned. Floating about in my inbox on its own.
This effect can be unfortunate.
Regards,
Markus
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-03 10:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-03 8:11 [PATCH] mfd: asic3: Delete redundant variable definition Markus Elfring
2020-04-03 9:25 ` Lee Jones
2020-04-03 10:12 ` Markus Elfring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®