kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Need help determining if the change is warranted.
@ 2023-03-27 11:34 Anton Gusev
  2023-05-27  0:36 ` Alison Schofield
  0 siblings, 1 reply; 4+ messages in thread
From: Anton Gusev @ 2023-03-27 11:34 UTC (permalink / raw)
  To: kernelnewbies

In the file drivers/leds/flash/leds-lm3601x.c, function 
lm3601x_strobe_set, the calls to regmap_update_bits aren't checked for 
errors.

I am unsure whether adding the checks is warranted, since 
lm3601x_read_faults might cover the conditions that can cause 
regmap_update_bits to fail there. On the other hand, if this is not 
true, then lm3601x_strobe_set can fail silently. Also, all other calls 
to regmap_update_bit in the driver are checked or directly returned.
-- 
Anton Gusev

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

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

end of thread, other threads:[~2023-05-28  4:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-27 11:34 Need help determining if the change is warranted Anton Gusev
2023-05-27  0:36 ` Alison Schofield
2023-05-27  6:05   ` Lucas Tanure
2023-05-28  4:18     ` Valdis Klētnieks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).