drm/amdgpu/gfx8: fix bugon.cocci warnings
authorJulia Lawall <julia.lawall@lip6.fr>
Tue, 10 Jan 2017 05:52:59 +0000 (06:52 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 16:13:30 +0000 (11:13 -0500)
commitf10b478d9e5f70f62d6a7b964922ab91299279eb
treebeeeaaebdc813291f692fabb8a4c15fa0d08279b
parent034041f33498ba57d9fd1d3e4aea7e40ea4988da
drm/amdgpu/gfx8: fix bugon.cocci warnings

 Use BUG_ON instead of a if condition followed by BUG.

Generated by: scripts/coccinelle/misc/bugon.cocci

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewd-by: Xiangliang.Yu <Xiangliang.Yu@amd.com>
CC: Xiangliang Yu <Xiangliang.Yu@amd.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c