projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
034041f
)
drm/amdgpu/gfx8: fix bugon.cocci warnings
author
Julia Lawall
<
[email protected]
>
Tue, 10 Jan 2017 05:52:59 +0000
(06:52 +0100)
committer
Alex Deucher
<
[email protected]
>
Fri, 27 Jan 2017 16:13:30 +0000
(11:13 -0500)
Use BUG_ON instead of a if condition followed by BUG.
Generated by: scripts/coccinelle/misc/bugon.cocci
Reviewed-by: Christian König <
[email protected]
>
Reviewd-by: Xiangliang.Yu <
[email protected]
>
CC: Xiangliang Yu <
[email protected]
>
Signed-off-by: Julia Lawall <
[email protected]
>
Signed-off-by: Fengguang Wu <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
index aa053f628786e00104dcc34f037ea545d35fefe6..c8c45ba952c825d3afb835867f6096b522e12d17 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
@@
-6671,8
+6671,7
@@
static void gfx_v8_0_ring_emit_fence_kiq(struct amdgpu_ring *ring, u64 addr,
u64 seq, unsigned int flags)
{
/* we only allocate 32bit for each seq wb address */
- if (flags & AMDGPU_FENCE_FLAG_64BIT)
- BUG();
+ BUG_ON(flags & AMDGPU_FENCE_FLAG_64BIT);
/* write fence seq to the "addr" */
amdgpu_ring_write(ring, PACKET3(PACKET3_WRITE_DATA, 3));