[linux-dvb] [patch 2.6.12-rc4-dvb-cvs 10/14] dvb: open-coded memset() in av7110_register

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No need to open-code memset() in av7110_register

Signed-off-by: Francois Romieu <romieu@xxxxxxxxxxxxx>

diff -puN drivers/media/dvb/ttpci/av7110.c~dvb-210 drivers/media/dvb/ttpci/av7110.c
--- a/drivers/media/dvb/ttpci/av7110.c~dvb-210	2005-05-20 19:37:12.789693900 +0200
+++ b/drivers/media/dvb/ttpci/av7110.c	2005-05-20 19:37:12.818689165 +0200
@@ -1323,7 +1323,7 @@ static int av7110_register(struct av7110
 {
 	struct dvb_demux *dvbdemux = &av7110->demux;
 	struct dmx_demux *dmx = &dvbdemux->dmx;
-	int i, ret = -1;
+	int ret = -1;
 
 	dprintk(4, "%p\n", av7110);
 
@@ -1335,8 +1335,7 @@ static int av7110_register(struct av7110
 
 	dvbdemux->priv = av7110;
 
-	for (i = 0; i < 32; i++)
-		av7110->handle2filter[i] = NULL;
+	memset(av7110->handle2filter, 0, sizeof(av7110->handle2filter));
 
 	dvbdemux->filternum = 32;
 	dvbdemux->feednum = 32;

_



[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux