Commit cd90b5fd authored by Daniel Vetter's avatar Daniel Vetter

fbdev/atyfb: lock_fb_info can't fail

It's properly protected by reboot_lock.
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Mikulas Patocka <mpatocka@redhat.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: "Ville Syrjälä" <syrjala@sci.fi>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190528090304.9388-16-daniel.vetter@ffwll.ch
parent 9ef37392
...@@ -3916,8 +3916,7 @@ static int atyfb_reboot_notify(struct notifier_block *nb, ...@@ -3916,8 +3916,7 @@ static int atyfb_reboot_notify(struct notifier_block *nb,
if (!reboot_info) if (!reboot_info)
goto out; goto out;
if (!lock_fb_info(reboot_info)) lock_fb_info(reboot_info);
goto out;
par = reboot_info->par; par = reboot_info->par;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment