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)
commit0c1145e05ce1c38d81f332263186092294ec7d90
treed220de0ae44f52e010e26baa302eb1aca76b61a2
parent7e8376f1d1272d1d12ea0b841ae05e21a9a574cc
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