drm/amd/display: fix signedness bug in execute_synaptics_rc_command()
[ Upstream commit 06ac561fb0edf868f7b292fb4a3c8ffbbb1e14bb ] The "ret" variable needs to be signed for the error handling to work. Fixes: 2ca97adccdc9 ("drm/amd/display: Add Synaptics Fifo Reset Workaround") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
7e48502e84
commit
d080c5c548
@ -571,7 +571,7 @@ static bool execute_synaptics_rc_command(struct drm_dp_aux *aux,
|
||||
unsigned char rc_cmd = 0;
|
||||
unsigned char rc_result = 0xFF;
|
||||
unsigned char i = 0;
|
||||
uint8_t ret = 0;
|
||||
int ret;
|
||||
|
||||
if (is_write_cmd) {
|
||||
// write rc data
|
||||
|
Loading…
x
Reference in New Issue
Block a user