linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: Qianqiang Liu <qianqiang.liu@163.com>, deller@gmx.de
Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fbdev: clps711x-fb: Remove dead code
Date: Fri, 4 Oct 2024 16:02:41 +0200	[thread overview]
Message-ID: <713a42f1-83d0-4d20-96f0-db9815313205@suse.de> (raw)
In-Reply-To: <20241004014349.435006-1-qianqiang.liu@163.com>

Hi

Am 04.10.24 um 03:43 schrieb Qianqiang Liu:
> The code can never be reached: unregister_framebuffer(info);
>
> Fixes: 36462ac19308 ("fbdev: clps711x-fb: Replace check_fb in favor of struct fb_info.lcd_dev")
> Signed-off-by: Qianqiang Liu <qianqiang.liu@163.com>

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>

> ---
>   drivers/video/fbdev/clps711x-fb.c | 2 --
>   1 file changed, 2 deletions(-)
>
> diff --git a/drivers/video/fbdev/clps711x-fb.c b/drivers/video/fbdev/clps711x-fb.c
> index 9e3df1df5ac4..b57134bc63e7 100644
> --- a/drivers/video/fbdev/clps711x-fb.c
> +++ b/drivers/video/fbdev/clps711x-fb.c
> @@ -332,8 +332,6 @@ static int clps711x_fb_probe(struct platform_device *pdev)
>   
>   	return 0;
>   
> -	unregister_framebuffer(info);
> -

This used to be code for error rollback, but is now unused. Thanks for 
fixing the issue.

Best regards
Thomas

>   out_fb_dealloc_cmap:
>   	regmap_update_bits(cfb->syscon, SYSCON_OFFSET, SYSCON1_LCDEN, 0);
>   	fb_dealloc_cmap(&info->cmap);

-- 
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)


      reply	other threads:[~2024-10-04 14:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-04  1:43 [PATCH] fbdev: clps711x-fb: Remove dead code Qianqiang Liu
2024-10-04 14:02 ` Thomas Zimmermann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=713a42f1-83d0-4d20-96f0-db9815313205@suse.de \
    --to=tzimmermann@suse.de \
    --cc=deller@gmx.de \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=qianqiang.liu@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).