drm/omapdrm: use BUG_ON macro for error debugging.
authorWambui Karuga <wambui.karugax@gmail.com>
Thu, 2 Jan 2020 09:55:15 +0000 (12:55 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 8 Jan 2020 17:35:36 +0000 (18:35 +0100)
commit8b185cf7ebaa1f390ba25368ce9ae387eb1a8b63
treede59110ecb1a8e608d0cf9e754fc4e0db8455192
parent50b81d77be31a95ba036e6403b921dc918328956
drm/omapdrm: use BUG_ON macro for error debugging.

Since the if statement only checks for the value of the `id` variable,
it can be replaced by the more concise BUG_ON() macro for error
reporting.
Issue found using coccinelle.

Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200102095515.7106-1-wambui.karugax@gmail.com
drivers/gpu/drm/omapdrm/dss/dispc.c