Skip to contentSkip to conversation

fbdev: clps711x-fb: remove redundant call to unregister_framebuffer

PATCH New Colin Ian King 1 participant 1 message Oct 9, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbdev: clps711x-fb: remove redundant call to unregister_framebuffer

Currently the call to unregister_framebuffer is unreachable code because the previous statement returns from the function. The call is redundant and can be removed.

Fixes 36462ac19308 ("fbdev: clps711x-fb: Replace check_fb in favor of struct fb_info.lcd_dev")
---
 drivers/video/fbdev/clps711x-fb.c | 2 --
 1 file changed, 2 deletions(-)
drivers/video/fbdev/clps711x-fb.c +0 -2
index 5e61a349a4ab..c350340fb7b9 100644
@@ -332,8 +332,6 @@ static int clps711x_fb_probe(struct platform_device *pdev)
 
 	return 0;
 
-	unregister_framebuffer(info);
-
 out_fb_dealloc_cmap:
 	regmap_update_bits(cfb->syscon, SYSCON_OFFSET, SYSCON1_LCDEN, 0);
 	fb_dealloc_cmap(&info->cmap);
Signature · 1 line
2.39.5