summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2003-06-29 08:21:16 +0000
committerHolger Waechtler <devnull@localhost>2003-06-29 08:21:16 +0000
commitc554b7d506bbc8e6e63e334af1599ca562093b6b (patch)
tree054a2ed844435a046b90ff3d02eda55802ec0149 /linux/drivers/media/dvb
parent301b61e16b1c6b2e83db1de3ca23d1d6a2d7f856 (diff)
downloadmediapointer-dvb-s2-c554b7d506bbc8e6e63e334af1599ca562093b6b.tar.gz
mediapointer-dvb-s2-c554b7d506bbc8e6e63e334af1599ca562093b6b.tar.bz2
clear net_device struct using memset(net, 0, ...) before initializing
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_net.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_net.c b/linux/drivers/media/dvb/dvb-core/dvb_net.c
index 407e24c89..b3ae5382c 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_net.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_net.c
@@ -514,10 +514,8 @@ static int dvb_net_add_if(struct dvb_net *dvbnet, u16 pid)
net = &dvbnet->device[if_num];
demux = dvbnet->demux;
- net->base_addr = 0;
- net->irq = 0;
- net->dma = 0;
- net->mem_start = 0;
+ memset(net, 0, sizeof(struct net_device));
+
memcpy(net->name, "dvb0_0", 7);
net->name[3] = dvbnet->dvbdev->adapter->num + '0';
net->name[5] = if_num + '0';