]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: most: dim2: replace BUG_ON() in service_done_flag()
authorGabriel Rondon <grondon@gmail.com>
Mon, 30 Mar 2026 18:22:52 +0000 (19:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Mar 2026 08:46:38 +0000 (10:46 +0200)
commit2466b3dd4045cd9f5e3f74803a00284bdaf2e493
treef39cccfa092864851bf0cf9b26202d9af0904880
parentf3dc6732fd52b59bab522c5095290bca0d5f5555
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>
drivers/staging/most/dim2/dim2.c