Skip to contentSkip to conversation

mfd: asic3: Delete redundant variable definition

PATCH Markus Elfring 2 participants 3 messages Apr 3, 2020 Kernel janitors

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines

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.

Quoted 1 line

it has already been assigned a value in the above code, including '0',

The variable assignment will eventually be performed only in if branches.

Quoted 1 line

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

#1 lore raw
Quoted 8 lines · Markus Elfring
Quoted 2 lines

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.

Quoted 1 line

it has already been assigned a value in the above code, including '0',

Quoted 8 lines

The variable assignment will eventually be performed only in if branches.

Quoted 1 line

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.

Signature · 4 lines
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
#2 lore raw
Quoted 1 line

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=%[email protected]%3E&Cc=lee.jones%40linaro.org%2Clinux-kernel%40vger.kernel.org&Subject=Re%3A%20%5BPATCH%5D%20mfd%3Aasic3%3ADelete%20redundant%20variable%20definition

Quoted 1 line

Now this messages is orphaned. Floating about in my inbox on its own.

This effect can be unfortunate.

Regards,
Markus