]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: remove conversion to bool in dc_link_ddc.c
authorJason Yan <yanaijie@huawei.com>
Mon, 27 Apr 2020 06:37:26 +0000 (14:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Apr 2020 19:52:17 +0000 (15:52 -0400)
commit3bd3741624093c4115e3d3ccd95296e900bc1040
tree52081170e386d9d62987099eb9dcd5a29188bdba
parent3c9d39bb5fbd7e2a110bbc549e5cfc6bef273d8a
drm/amd/display: remove conversion to bool in dc_link_ddc.c

The '>' expression itself is bool, no need to convert it to bool again.
This fixes the following coccicheck warning:

drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c:602:28-33: WARNING:
conversion to bool not needed here

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c