diff options
| author | Jiapeng Chong <[email protected]> | 2024-07-01 10:50:28 +0800 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-07-02 18:04:27 -0400 |
| commit | fcb2f988ef4905ac787fef040a28d0f0f610ad83 (patch) | |
| tree | 4d8aaaa73f8f01c95d3dfd60adde16457e3e1f8d /lib/crypto/mpi/mpi-bit.c | |
| parent | f340f2bad1c790d2759680b7df853f548e7beadc (diff) | |
drm/amd/display: Fix unsigned comparison with less than zero
The return value from the call to dml21_find_dc_pipes_for_plane() is int.
However, the return value is being assigned to an unsigned int variable
'num_pipes', the condition if(num_pipes <= 0) is not rigorous enough,
so making 'num_pipes' an int.
./drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c:318:6-15: WARNING: Unsigned expression compared with zero: num_pipes <= 0.
./drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c:360:6-15: WARNING: Unsigned expression compared with zero: num_pipes <= 0.
Reported-by: Abaci Robot <[email protected]>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9454
Signed-off-by: Jiapeng Chong <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions