Skip to contentSkip to conversation

DVB stv0299.c: remove unused variable

PATCH In review Adrian Bunk 2 participants 2 messages Mar 3, 2004 – Mar 4, 2004 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 DVB stv0299.c: remove unused variable

The stv0299 DVB frontend update in Linus' 2.6 tree introduced a completely unused variable:

<-- snip -->

...
CC drivers/media/dvb/frontends/stv0299.o
drivers/media/dvb/frontends/stv0299.c: In function `tsa5059_set_tv_freq':
drivers/media/dvb/frontends/stv0299.c:356: warning: unused variable `i'
...

<-- snip -->

The following patch removes this variable:

drivers/media/dvb/frontends/stv0299.c renamed from drivers/media/dvb/frontends/stv0299.c.old +1 -1
@@ -353,7 +353,7 @@
 	u8 addr;
 	u32 div;
 	u8 buf[4];
-        int i, divisor, regcode;
+	int divisor, regcode;
 
 	dprintk ("%s: freq %i, ftype %i\n", __FUNCTION__, freq, ftype);
 

Please apply
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#1 lore raw

Hello Adrian,

drivers/media/dvb/frontends/stv0299.c

Quoted 18 lines · Adrian Bunk

The stv0299 DVB frontend update in Linus' 2.6 tree introduced a completely unused variable:

<-- snip -->

...
CC drivers/media/dvb/frontends/stv0299.o
drivers/media/dvb/frontends/stv0299.c: In function `tsa5059_set_tv_freq':
drivers/media/dvb/frontends/stv0299.c:356: warning: unused variable `i'
...

<-- snip -->

The following patch removes this variable:

drivers/media/dvb/frontends/stv0299.c renamed from drivers/media/dvb/frontends/stv0299.c.old +0 -0

Thanks. The patch is already in our local CVS and will be in the next DVB update.

Please CC the official "maintainer" address <[email protected]> the next time. Thanks!

CU
Michael.