]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
video: exynos: node variable should not be unsigned
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 30 Sep 2025 16:43:46 +0000 (17:43 +0100)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 2 Feb 2026 09:58:44 +0000 (18:58 +0900)
THe variable 'node' is assigned a value of an int, tested for being less
than or equal to zero then passed as an argument to a function that
takes an int so 'node' should not be unsigned. Fix it.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/video/exynos/exynos_fb.c

index 0407a3f51b0d0b3dbb43e2979055208540d5549a..1cc1bd92e5712a8d3b43ac6fac61a4543e4bcca3 100644 (file)
@@ -350,7 +350,7 @@ void exynos_fimd_window_off(struct exynos_fb_priv *priv, unsigned int win_id)
 void exynos_fimd_disable_sysmmu(void)
 {
        u32 *sysmmufimd;
-       unsigned int node;
+       int node;
        int node_list[2];
        int count;
        int i;