public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] mfd: asic3: Add error checking return in asic3_mfd_probe()
@ 2020-04-19 11:19 Markus Elfring
  2020-04-20  7:13 ` Lee Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Markus Elfring @ 2020-04-19 11:19 UTC (permalink / raw)
  To: Tang Bin, Shengju Zhang; +Cc: Lee Jones, linux-kernel

> In the function asic3_mfd_probe(), when get resource or irq
> failed, the value returned just detected and debug error message,
> but there were no error checking return. So add the right error
> checking return.

I suggest to improve the commit message.
Would you like to adjust the patch subject?


> And remove the redundant 'ret = 0'.

I propose to reconsider this interpretation of the source code here.
How do you think about to move the mentioned statement into an else branch
at the end?

Regards,
Markus

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-04-20 10:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-19 11:19 [PATCH] mfd: asic3: Add error checking return in asic3_mfd_probe() Markus Elfring
2020-04-20  7:13 ` Lee Jones
2020-04-20  8:37   ` Markus Elfring
2020-04-20  8:50     ` Lee Jones
2020-04-20 10:04       ` Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox