Thread (3 messages) 3 messages, 2 authors, 2020-07-02

Re: [bug report] firmware: arm_scmi: Add notification callbacks-registration

From: Dan Carpenter <hidden>
Date: 2020-07-02 11:20:02

On Wed, Jul 01, 2020 at 01:29:24PM +0100, Cristian Marussi wrote:
quoted
  1273                  if (!scmi_event_handler_enable_events(hndl)) {

I really don't like that half these functions follow normal kernel error
style and half return true/false on failure.  Normally we would want
boolean functions to be clear from the name like access_ok() which
clearly returns true/false. But I didn't see that it causes any bugs
yet.
Ok I'll convert all the functions to classical 0-Success style dumping
the booleans. I cannot see in fact any suitable func_ok() style function.
You are a hero.  Thanks!

regards,
dan carpenter


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help