diff options
| author | Thorsten Blum <[email protected]> | 2024-07-01 19:56:08 +0000 |
|---|---|---|
| committer | Thomas Zimmermann <[email protected]> | 2024-07-03 08:11:03 +0000 |
| commit | 3f5ea7ed705e8effe9cfabf912e769ccb6b7d389 (patch) | |
| tree | c3036010025cff2d0a64502ba6bfd4f24f6e9b6d /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
| parent | drm/ast: Use drm_atomic_helper_commit_tail() helper (diff) | |
| download | kernel-3f5ea7ed705e8effe9cfabf912e769ccb6b7d389.tar.gz kernel-3f5ea7ed705e8effe9cfabf912e769ccb6b7d389.zip | |
drm/managed: 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.
Acked-by: Thomas Zimmermann <[email protected]>
Signed-off-by: Thorsten Blum <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Signed-off-by: Thomas Zimmermann <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions
