diff options
| author | Thorsten Blum <[email protected]> | 2024-06-03 18:00:07 +0000 |
|---|---|---|
| committer | Matthew Brost <[email protected]> | 2024-06-05 16:35:53 +0000 |
| commit | b3181f433206a1432bc7093d1896fe36026f7fff (patch) | |
| tree | 0a916f6830ea44265efbea0414254f498aa1627a /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | drm/xe: drop redundant W=1 warnings from Makefile (diff) | |
| download | kernel-b3181f433206a1432bc7093d1896fe36026f7fff.tar.gz kernel-b3181f433206a1432bc7093d1896fe36026f7fff.zip | |
drm/xe/vm: Simplify if condition
The if condition !A || A && B can be simplified to !A || B.
Fixes the following Coccinelle/coccicheck warning reported by
excluded_middle.cocci:
WARNING !A || A && B is equivalent to !A || B
Compile-tested only.
Signed-off-by: Thorsten Blum <[email protected]>
Reviewed-by: Matthew Brost <[email protected]>
Signed-off-by: Matthew Brost <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
