Linux Framebuffer Layer development
 help / color / mirror / Atom feed
From: Jingoo Han <jg1.han@samsung.com>
To: linux-fbdev@vger.kernel.org
Subject: RE: [PATCH 1/1] video: exynos_dp: Fix compilation warning
Date: Mon, 18 Jun 2012 05:22:01 +0000	[thread overview]
Message-ID: <000c01cd4d12$4a6956e0$df3c04a0$%han@samsung.com> (raw)
In-Reply-To: <1339995317-17788-1-git-send-email-sachin.kamat@linaro.org>


On Mon, June 18, 2012 at 1:55 PM, Sachin Kamat wrote:

> Fixes the following warning:
> drivers/video/exynos/exynos_dp_core.c: In function ‘exynos_dp_set_link_train’:
> drivers/video/exynos/exynos_dp_core.c:529:18: warning: ‘reg’ may be used uninitialized in this function
> [-Wuninitialized]
> drivers/video/exynos/exynos_dp_core.c:395:6: note: ‘reg’ was declared here

This warning was already reported and patch was submitted by Olof Johansson.
I will check and fix it later.

Thank you.

> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  drivers/video/exynos/exynos_dp_core.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/video/exynos/exynos_dp_core.c b/drivers/video/exynos/exynos_dp_core.c
> index a36b2d2..017c727 100644
> --- a/drivers/video/exynos/exynos_dp_core.c
> +++ b/drivers/video/exynos/exynos_dp_core.c
> @@ -392,7 +392,7 @@ static unsigned int exynos_dp_get_lane_link_training(
>  				struct exynos_dp_device *dp,
>  				int lane)
>  {
> -	u32 reg;
> +	u32 reg = 0;
> 
>  	switch (lane) {
>  	case 0:
> --
> 1.7.4.1


      reply	other threads:[~2012-06-18  5:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-18  5:07 [PATCH 1/1] video: exynos_dp: Fix compilation warning Sachin Kamat
2012-06-18  5:22 ` Jingoo Han [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='000c01cd4d12$4a6956e0$df3c04a0$%han@samsung.com' \
    --to=jg1.han@samsung.com \
    --cc=linux-fbdev@vger.kernel.org \
    /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