mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 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

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®