diff mbox series

[-next] video: Remove set but not used variable

Message ID 1600957106-13741-1-git-send-email-liheng40@huawei.com
State New
Headers show
Series [-next] video: Remove set but not used variable | expand

Commit Message

Li Heng Sept. 24, 2020, 2:18 p.m. UTC
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/video/fbdev/sis/300vtbl.h:1064:28: warning:
‘SiS300_CHTVVCLKSONTSC’ defined but not used [-Wunused-const-variable=]

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Li Heng <liheng40@huawei.com>
---
 drivers/video/fbdev/sis/300vtbl.h | 2 --
 1 file changed, 2 deletions(-)

--
2.7.4

Comments

Sam Ravnborg Oct. 16, 2020, 8:58 p.m. UTC | #1
Hi Li Heng

On Thu, Sep 24, 2020 at 10:18:26PM +0800, Li Heng wrote:
> Fixes gcc '-Wunused-but-set-variable' warning:

> 

> drivers/video/fbdev/sis/300vtbl.h:1064:28: warning:

> ‘SiS300_CHTVVCLKSONTSC’ defined but not used [-Wunused-const-variable=]

> 

> Reported-by: Hulk Robot <hulkci@huawei.com>

> Signed-off-by: Li Heng <liheng40@huawei.com>


Thanks, now applied to drm-misc-next.

	Sam

> ---

>  drivers/video/fbdev/sis/300vtbl.h | 2 --

>  1 file changed, 2 deletions(-)

> 

> diff --git a/drivers/video/fbdev/sis/300vtbl.h b/drivers/video/fbdev/sis/300vtbl.h

> index e4b4a26..26b19f7 100644

> --- a/drivers/video/fbdev/sis/300vtbl.h

> +++ b/drivers/video/fbdev/sis/300vtbl.h

> @@ -1061,8 +1061,6 @@ static const unsigned char SiS300_CHTVVCLKUNTSC[]  = { 0x29,0x29,0x29,0x29,0x2a,

> 

>  static const unsigned char SiS300_CHTVVCLKONTSC[]  = { 0x2c,0x2c,0x2c,0x2c,0x2d,0x2b };

> 

> -static const unsigned char SiS300_CHTVVCLKSONTSC[] = { 0x2c,0x2c,0x2c,0x2c,0x2d,0x2b };

> -

>  static const unsigned char SiS300_CHTVVCLKUPAL[]   = { 0x2f,0x2f,0x2f,0x2f,0x2f,0x31 };

> 

>  static const unsigned char SiS300_CHTVVCLKOPAL[]   = { 0x2f,0x2f,0x2f,0x2f,0x30,0x32 };

> --

> 2.7.4

> 

> _______________________________________________

> dri-devel mailing list

> dri-devel@lists.freedesktop.org

> https://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox series

Patch

diff --git a/drivers/video/fbdev/sis/300vtbl.h b/drivers/video/fbdev/sis/300vtbl.h
index e4b4a26..26b19f7 100644
--- a/drivers/video/fbdev/sis/300vtbl.h
+++ b/drivers/video/fbdev/sis/300vtbl.h
@@ -1061,8 +1061,6 @@  static const unsigned char SiS300_CHTVVCLKUNTSC[]  = { 0x29,0x29,0x29,0x29,0x2a,

 static const unsigned char SiS300_CHTVVCLKONTSC[]  = { 0x2c,0x2c,0x2c,0x2c,0x2d,0x2b };

-static const unsigned char SiS300_CHTVVCLKSONTSC[] = { 0x2c,0x2c,0x2c,0x2c,0x2d,0x2b };
-
 static const unsigned char SiS300_CHTVVCLKUPAL[]   = { 0x2f,0x2f,0x2f,0x2f,0x2f,0x31 };

 static const unsigned char SiS300_CHTVVCLKOPAL[]   = { 0x2f,0x2f,0x2f,0x2f,0x30,0x32 };