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:
Gabriel Rondon 2026-03-30 19:22:52 +01:00 committed by Greg Kroah-Hartman
parent f3dc6732fd
commit 2466b3dd40

View File

@ -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);