]> www.infradead.org Git - users/hch/misc.git/commit
drm/xe/vm: Simplify if condition
authorThorsten Blum <thorsten.blum@toblux.com>
Mon, 3 Jun 2024 18:00:07 +0000 (20:00 +0200)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 5 Jun 2024 16:35:53 +0000 (09:35 -0700)
commitb3181f433206a1432bc7093d1896fe36026f7fff
tree0a916f6830ea44265efbea0414254f498aa1627a
parentf6c823f9b9d40f6811a6da4bcf6005a52f28c6d6
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 <thorsten.blum@toblux.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240603180005.191578-1-thorsten.blum@toblux.com
drivers/gpu/drm/xe/xe_vm.c