drm/amd/display: remove useless check in should_enable_fbc()
authorDembskiy Igor <dii@itb.spb.ru>
Wed, 30 Aug 2023 14:01:03 +0000 (17:01 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Sep 2023 18:31:17 +0000 (14:31 -0400)
commit19d5f80128d7a197fcb465f21465c30ee4c36f25
tree6146aadba3cb90edd4f1188f1a8190c855752884
parent63461ea3fb403be0d040be3c88e621b55672e26a
drm/amd/display: remove useless check in should_enable_fbc()

It does not make sense to compare a pointer to array element with NULL.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 65d38262b3e8 ("drm/amd/display: fbc state could not reach while enable fbc")
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Dembskiy Igor <dii@itb.spb.ru>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c