]> 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)
commit9ad4a167e4618ecfde00a90e06acb9d5a0f0c206
treed220de0ae44f52e010e26baa302eb1aca76b61a2
parent5d22b3fb8591f8515ee9f1cc95c8a664f242846c
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