]> git.baikalelectronics.ru Git - kernel.git/commit
drm/udl: Replace BUG_ON() with WARN_ON()
authorTakashi Iwai <tiwai@suse.de>
Thu, 4 Aug 2022 07:58:26 +0000 (09:58 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 10 Aug 2022 08:07:05 +0000 (10:07 +0200)
commit77ca7dfb7d55ffef676687cb166eda77bb0ed5e8
tree2ec5dd0e9e8374880afb99caebb9bf708f456b8e
parent4760b23ad27869e5761ed96cb4ec74070f9921d6
drm/udl: Replace BUG_ON() with WARN_ON()

BUG_ON() is a tasteless choice as a sanity check for a driver like UDL
that isn't really a core code.  Replace with WARN_ON() and proper
error handling instead.

Tested-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220804075826.27036-5-tiwai@suse.de
drivers/gpu/drm/udl/udl_main.c
drivers/gpu/drm/udl/udl_transfer.c