diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-06-03 17:21:02 +0300 |
---|---|---|
committer | Andrzej Hajda <a.hajda@samsung.com> | 2019-06-07 16:01:19 +0300 |
commit | 382d8dfe8b1b4eb3b3f9f830ef52b58780290d32 (patch) | |
tree | 5a5a052cb9dd2c621dd9e35f52bb4ca2e839f44d /drivers/gpu/drm/drm_crtc_internal.h | |
parent | 955f03a7d0738bd373d69f76191b9a66adb3255c (diff) | |
download | linux-382d8dfe8b1b4eb3b3f9f830ef52b58780290d32.tar.xz |
drm/bridge: sii902x: fix comparision of u32 with less than zero
The less than check for the variable num_lanes is always going to be
false because the variable is a u32. Fix this by making num_lanes an
int and also make loop index i an int too.
Addresses-Coverity: ("Unsigned compared against 0")
Fixes: ff5781634c41 ("drm/bridge: sii902x: Implement HDMI audio support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Jyri Sarha <jsarha@ti.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190603142102.27191-1-colin.king@canonical.com
Diffstat (limited to 'drivers/gpu/drm/drm_crtc_internal.h')
0 files changed, 0 insertions, 0 deletions