Re: [PATCH] pinctrl: bcm2835: Replace BUG with BUG_ON

From
Florian Fainelli <f.fainelli@gmail.com>
Date
2021-06-24 16:22:48
Also in
linux-gpio, lkml
Reply to
Jason Wang, 2021-06-24
On 6/23/21 11:49 PM, Jason Wang wrote:
The if condition followed by BUG can be replaced to BUG_ON which is
more compact and formal in linux source.

Signed-off-by: Jason Wang <redacted>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>

Although I would rather completely remove this BUG_ON() and replace it
with a WARN_ON() instead, no need to kill the machine for such a
problem, however unlikely it is to appear.
-- 
Florian

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (3 messages) 3 messages, 3 authors, last reply 2021-07-23
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help