mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
fbdev: clps711x-fb: Remove unreachable unregister_framebuffer() call
The unregister_framebuffer() call in clps711x_fb_probe() is unreachable.
register_framebuffer() failure jumps to the unwind label, while success
returns immediately.
Remove it.
Found with Clang's -Wunreachable-code.
Fixes: 36462ac193 ("fbdev: clps711x-fb: Replace check_fb in favor of struct fb_info.lcd_dev")
Assisted-by: Claude:claude-fable-5
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
4c1977df69
commit
39dd7598fb
|
|
@ -329,8 +329,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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user