aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <[email protected]>2019-05-28 11:02:46 +0200
committerDaniel Vetter <[email protected]>2019-06-12 20:28:32 +0200
commitcd90b5fdfad5b1c41f3a87fd3a928f574bc60933 (patch)
tree9926e5a3154c514fd816090321d1a5cf3e03ea80
parent9ef373923756b96680853d5b93578986dd07169a (diff)
fbdev/atyfb: lock_fb_info can't fail
It's properly protected by reboot_lock. Signed-off-by: Daniel Vetter <[email protected]> Reviewed-by: Sam Ravnborg <[email protected]> Reviewed-by: Maarten Lankhorst <[email protected]> Cc: Mikulas Patocka <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: "Ville Syrjälä" <[email protected]> Cc: Bartlomiej Zolnierkiewicz <[email protected]> Cc: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r--drivers/video/fbdev/aty/atyfb_base.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/fbdev/aty/atyfb_base.c b/drivers/video/fbdev/aty/atyfb_base.c
index b6fe103df145..eebb62d82a23 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;