mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 20:22:08 +02:00
staging: most: dim2: replace BUG_ON() in service_done_flag()
Replace BUG_ON() calls with an early return since the function returns void. BUG_ON() is deprecated as it crashes the entire kernel on assertion failure (see Documentation/process/deprecated.rst). Signed-off-by: Gabriel Rondon <grondon@gmail.com> Link: https://patch.msgid.link/20260330182255.75241-3-grondon@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f3dc6732fd
commit
2466b3dd40
|
|
@ -271,8 +271,8 @@ static void service_done_flag(struct dim2_hdm *dev, int ch_idx)
|
|||
unsigned long flags;
|
||||
u8 *data;
|
||||
|
||||
BUG_ON(!hdm_ch);
|
||||
BUG_ON(!hdm_ch->is_initialized);
|
||||
if (!hdm_ch || !hdm_ch->is_initialized)
|
||||
return;
|
||||
|
||||
spin_lock_irqsave(&dim_lock, flags);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user