diff options
author | Dave Airlie <airlied@redhat.com> | 2023-02-23 00:47:29 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2023-02-23 00:48:05 +0100 |
commit | a48bba98380cb0b43dcd01d276c7efc282e3c33f (patch) | |
tree | 2937b3cb4bb62e7b12034bb40bb14cb8646f62c2 /drivers | |
parent | Merge tag 'drm-misc-next-fixes-2023-02-21' of git://anongit.freedesktop.org/d... (diff) | |
download | linux-a48bba98380cb0b43dcd01d276c7efc282e3c33f.tar.xz linux-a48bba98380cb0b43dcd01d276c7efc282e3c33f.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/msm/msm_fbdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_fbdev.c b/drivers/gpu/drm/msm/msm_fbdev.c index c804e5ba682a..c1356aff87da 100644 --- a/drivers/gpu/drm/msm/msm_fbdev.c +++ b/drivers/gpu/drm/msm/msm_fbdev.c @@ -142,7 +142,7 @@ struct drm_fb_helper *msm_fbdev_init(struct drm_device *dev) fbdev = kzalloc(sizeof(*fbdev), GFP_KERNEL); if (!fbdev) - goto fail; + return NULL; helper = &fbdev->base; |