Commit 2466b3dd authored by Gabriel Rondon's avatar Gabriel Rondon Committed by Greg Kroah-Hartman
Browse files

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: default avatarGabriel Rondon <grondon@gmail.com>
Link: https://patch.msgid.link/20260330182255.75241-3-grondon@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f3dc6732
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);