All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Matthias Brugger <matthias.bgg@googlemail.com>
Cc: Tony Lindgren <tony@atomide.com>,
	linux-omap@vger.kernel.org,
	Matthias Brugger <matthias.bgg@gmail.com>
Subject: Re: [PATCH] omap2/ompafb/omapfb-main.c: Delete if evaluating constant.
Date: Mon, 19 Nov 2012 13:14:45 +0200	[thread overview]
Message-ID: <50AA14A5.8030600@ti.com> (raw)
In-Reply-To: <1353088261-27085-1-git-send-email-matthias.bgg@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1149 bytes --]

On 2012-11-16 19:51, Matthias Brugger wrote:
> Variable r is never set to any value different to zero.
> Delete the if statement as it will never executed.
> 
> Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
> ---
>  drivers/video/omap2/omapfb/omapfb-main.c |    4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
> index 16db158..85f9de0 100644
> --- a/drivers/video/omap2/omapfb/omapfb-main.c
> +++ b/drivers/video/omap2/omapfb/omapfb-main.c
> @@ -2411,7 +2411,6 @@ static int __init omapfb_probe(struct platform_device *pdev)
>  	fbdev->dev = &pdev->dev;
>  	platform_set_drvdata(pdev, fbdev);
>  
> -	r = 0;
>  	fbdev->num_displays = 0;
>  	dssdev = NULL;
>  	for_each_dss_dev(dssdev) {
> @@ -2434,9 +2433,6 @@ static int __init omapfb_probe(struct platform_device *pdev)
>  			d->update_mode = OMAPFB_AUTO_UPDATE;
>  	}
>  
> -	if (r)
> -		goto cleanup;
> -
>  	if (fbdev->num_displays == 0) {
>  		dev_err(&pdev->dev, "no displays\n");
>  		r = -EINVAL;
> 

Thanks, I'll apply to omapdss tree.

 Tomi



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 897 bytes --]

      reply	other threads:[~2012-11-19 11:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-16 17:51 [PATCH] omap2/ompafb/omapfb-main.c: Delete if evaluating constant Matthias Brugger
2012-11-19 11:14 ` Tomi Valkeinen [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=50AA14A5.8030600@ti.com \
    --to=tomi.valkeinen@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=matthias.bgg@gmail.com \
    --cc=matthias.bgg@googlemail.com \
    --cc=tony@atomide.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.