From: Daniel Vetter Date: Tue, 28 May 2019 09:02:46 +0000 (+0200) Subject: fbdev/atyfb: lock_fb_info can't fail X-Git-Tag: v5.15~6020^2~6^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd90b5fdfad5b1c41f3a87fd3a928f574bc60933;p=platform%2Fkernel%2Flinux-starfive.git fbdev/atyfb: lock_fb_info can't fail It's properly protected by reboot_lock. Signed-off-by: Daniel Vetter Reviewed-by: Sam Ravnborg Reviewed-by: Maarten Lankhorst Cc: Mikulas Patocka Cc: "David S. Miller" Cc: "Ville Syrjälä" Cc: Bartlomiej Zolnierkiewicz Cc: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20190528090304.9388-16-daniel.vetter@ffwll.ch --- diff --git a/drivers/video/fbdev/aty/atyfb_base.c b/drivers/video/fbdev/aty/atyfb_base.c index b6fe103..eebb62d8 100644 --- a/drivers/video/fbdev/aty/atyfb_base.c +++ b/drivers/video/fbdev/aty/atyfb_base.c @@ -3916,8 +3916,7 @@ static int atyfb_reboot_notify(struct notifier_block *nb, if (!reboot_info) goto out; - if (!lock_fb_info(reboot_info)) - goto out; + lock_fb_info(reboot_info); par = reboot_info->par;