Patchwork [U-Boot,1/2] video: exynos_dp: Remove unused variable disp_info

login
register
mail settings
Submitter Ajay Kumar
Date Jan. 14, 2013, 9:32 a.m.
Message ID <1358155936-834-2-git-send-email-ajaykumar.rs@samsung.com>
Download mbox | patch
Permalink /patch/211734/
State Accepted
Delegated to: Minkyu Kang
Headers show

Comments

Ajay Kumar - Jan. 14, 2013, 9:32 a.m.
Remove unused variable disp_info to fix the following compilation warning:
exynos_dp.c: In function 'exynos_init_dp':
exynos_dp.c:860:23: warning: variable 'disp_info' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
---
 drivers/video/exynos_dp.c | 2 --
 1 file changed, 2 deletions(-)
Simon Glass - Jan. 22, 2013, 1:38 p.m.
On Mon, Jan 14, 2013 at 1:32 AM, Ajay Kumar <ajaykumar.rs@samsung.com> wrote:
> Remove unused variable disp_info to fix the following compilation warning:
> exynos_dp.c: In function 'exynos_init_dp':
> exynos_dp.c:860:23: warning: variable 'disp_info' set but not used
> [-Wunused-but-set-variable]
>
> Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>

Acked-by: Simon Glass <sjg@chromium.org>

> ---
>  drivers/video/exynos_dp.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/video/exynos_dp.c b/drivers/video/exynos_dp.c
> index 53e4101..d72fa56 100644
> --- a/drivers/video/exynos_dp.c
> +++ b/drivers/video/exynos_dp.c
> @@ -857,7 +857,6 @@ unsigned int exynos_init_dp(void)
>  {
>         unsigned int ret;
>         struct edp_device_info *edp_info;
> -       struct edp_disp_info disp_info;
>
>         edp_info = kzalloc(sizeof(struct edp_device_info), GFP_KERNEL);
>         if (!edp_info) {
> @@ -870,7 +869,6 @@ unsigned int exynos_init_dp(void)
>                 debug("failed to get edp_info data.\n");
>                 return -EFAULT;
>         }
> -       disp_info = edp_info->disp_info;
>
>         exynos_dp_disp_info(&edp_info->disp_info);
>
> --
> 1.8.0
>

Patch

diff --git a/drivers/video/exynos_dp.c b/drivers/video/exynos_dp.c
index 53e4101..d72fa56 100644
--- a/drivers/video/exynos_dp.c
+++ b/drivers/video/exynos_dp.c
@@ -857,7 +857,6 @@  unsigned int exynos_init_dp(void)
 {
 	unsigned int ret;
 	struct edp_device_info *edp_info;
-	struct edp_disp_info disp_info;
 
 	edp_info = kzalloc(sizeof(struct edp_device_info), GFP_KERNEL);
 	if (!edp_info) {
@@ -870,7 +869,6 @@  unsigned int exynos_init_dp(void)
 		debug("failed to get edp_info data.\n");
 		return -EFAULT;
 	}
-	disp_info = edp_info->disp_info;
 
 	exynos_dp_disp_info(&edp_info->disp_info);