drm/msm: use BUG_ON macro for debugging.
authorWambui Karuga <wambui.karugax@gmail.com>
Mon, 30 Dec 2019 19:41:02 +0000 (22:41 +0300)
committerRob Clark <robdclark@chromium.org>
Fri, 3 Jan 2020 00:17:20 +0000 (16:17 -0800)
commite37b624d25139f8b9d4bdafb3ac5131f56d0e7bb
treecd46fbdaf3c334f9336fc94eb267c4ae2bba3f91
parent89048dd010f00de0fd5129fb5bba2a20ca9ab70b
drm/msm: use BUG_ON macro for debugging.

As the if statement only checks for the value of the offset_name
variable, it can be replaced by the more conscise BUG_ON macro for error
reporting.

Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Reviewed-by: Sean Paul <sean@poorly.run>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/adreno_gpu.h