]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
msm/fbdev: fix unused variable warning with clang.
authorDave Airlie <airlied@redhat.com>
Wed, 22 Feb 2023 23:47:29 +0000 (09:47 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 22 Feb 2023 23:48:05 +0000 (09:48 +1000)
commita48bba98380cb0b43dcd01d276c7efc282e3c33f
tree2937b3cb4bb62e7b12034bb40bb14cb8646f62c2
parent13daf536191e8c484fa21de8fcac4767f7b66e80
msm/fbdev: fix unused variable warning with clang.

clang builds showed this:
drivers/gpu/drm/msm/msm_fbdev.c:144:6: error: variable 'helper' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
        if (!fbdev)
            ^~~~~~

Fixes: 3fb1f62f80a1 ("drm/fb-helper: Remove drm_fb_helper_unprepare() from drm_fb_helper_fini()")
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/msm/msm_fbdev.c