]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: fix smatch warning in igt_check_blocks
authorMatthew Auld <matthew.auld@intel.com>
Fri, 2 Jul 2021 10:46:41 +0000 (11:46 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 7 Jul 2021 08:52:52 +0000 (09:52 +0100)
commitfb6abe4d05d9d2526c138ac1d571db269d095c19
treed220de0ae44f52e010e26baa302eb1aca76b61a2
parentef2e7b451e46b65ad6610520c8d9cc1be4e7bf79
drm/i915/selftests: fix smatch warning in igt_check_blocks

The block here can't be NULL, especially since we already dereferenced
it earlier, so remove the redundant check.

igt_check_blocks() warn: variable dereferenced before check 'block' (see line 126)

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210702104642.1189978-1-matthew.auld@intel.com
drivers/gpu/drm/i915/selftests/i915_buddy.c