staging: gdm72xx: Remove unnecessary memset of netdev private data

The memory for struct net_device private data is allocated using
kzalloc/vzalloc in alloc_netdev_mqs, thus there is no need to zero it
again in the driver.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Tobias Klauser 2014-07-08 10:00:56 +02:00 коммит произвёл Greg Kroah-Hartman
Родитель b92274e78a
Коммит cd687a4073
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -882,8 +882,6 @@ int register_wimax_device(struct phy_dev *phy_dev, struct device *pdev)
memcpy(dev->dev_addr, gdm_wimax_macaddr, sizeof(gdm_wimax_macaddr));
nic = netdev_priv(dev);
memset(nic, 0, sizeof(*nic));
nic->netdev = dev;
nic->phy_dev = phy_dev;
phy_dev->netdev = dev;