drm/amd/display: Simplify bool conversion
./drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c:1610:68-73: WARNING: conversion to bool not needed here Reported-by: Abaci Robot <abaci@linux.alibaba.com> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4025 Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
f0584be558
commit
d2c40a2d75
@ -1607,7 +1607,7 @@ static bool retrieve_link_cap(struct dc_link *link)
|
||||
dpcd_data[DP_TRAINING_AUX_RD_INTERVAL];
|
||||
|
||||
link->dpcd_caps.ext_receiver_cap_field_present =
|
||||
aux_rd_interval.bits.EXT_RECEIVER_CAP_FIELD_PRESENT == 1 ? true:false;
|
||||
aux_rd_interval.bits.EXT_RECEIVER_CAP_FIELD_PRESENT == 1;
|
||||
|
||||
if (aux_rd_interval.bits.EXT_RECEIVER_CAP_FIELD_PRESENT == 1) {
|
||||
uint8_t ext_cap_data[16];
|
||||
|
Loading…
Reference in New Issue
Block a user