public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Jones <michael.jones@matrix-vision.de>
To: linux-omap@vger.kernel.org
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>, Archit Taneja <archit@ti.com>
Subject: Re: [PATCH] OMAP: DSS2: DSI: fix warning unused variable 'dsidev'
Date: Fri, 12 Aug 2011 09:45:25 +0200	[thread overview]
Message-ID: <4E44DA15.7080103@matrix-vision.de> (raw)
In-Reply-To: <1312556561-27179-1-git-send-email-michael.jones@matrix-vision.de>

Hi all,

On 08/05/2011 05:02 PM, Michael Jones wrote:
> 
>   CC      drivers/video/omap2/dss/dsi.o
> drivers/video/omap2/dss/dsi.c: In function ‘omap_dsi_prepare_update’:
> drivers/video/omap2/dss/dsi.c:3936: warning: unused variable ‘dsidev’
> 
> Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
> ---
>  drivers/video/omap2/dss/dsi.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c
> index 345757c..3ae0fd8 100644
> --- a/drivers/video/omap2/dss/dsi.c
> +++ b/drivers/video/omap2/dss/dsi.c
> @@ -3933,7 +3933,9 @@ int omap_dsi_prepare_update(struct omap_dss_device *dssdev,
>  				    u16 *x, u16 *y, u16 *w, u16 *h,
>  				    bool enlarge_update_area)
>  {
> +#ifdef DEBUG
>  	struct platform_device *dsidev = dsi_get_dsidev_from_dssdev(dssdev);
> +#endif
>  	u16 dw, dh;
>  
>  	dssdev->driver->get_resolution(dssdev, &dw, &dh);

Upon a second look, this seems to fix a problem that doesn't exist and
create one that didn't. Having reverted this patch, I don't get the
warning I originally saw, and using the patch, I get a compiler error.
Please disregard this submission and excuse the noise.

-Michael

MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner, Erhard Meier
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2011-08-12  7:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-05 15:02 [PATCH] OMAP: DSS2: DSI: fix warning unused variable 'dsidev' Michael Jones
2011-08-12  7:45 ` Michael Jones [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=4E44DA15.7080103@matrix-vision.de \
    --to=michael.jones@matrix-vision.de \
    --cc=archit@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=tomi.valkeinen@ti.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