diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-07-08 10:00:56 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-09 11:57:16 -0700 |
commit | cd687a4073d58b5763ed085b942302714f0fa73d (patch) | |
tree | ecb2d25c93c963bb5f46eedd0520a47e0d862b8e /drivers/staging/gdm72xx | |
parent | b92274e78a587dde4e4cf87228c4dc4d1ad5039d (diff) | |
download | linux-stable-cd687a4073d58b5763ed085b942302714f0fa73d.tar.gz linux-stable-cd687a4073d58b5763ed085b942302714f0fa73d.tar.bz2 linux-stable-cd687a4073d58b5763ed085b942302714f0fa73d.zip |
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>
Diffstat (limited to 'drivers/staging/gdm72xx')
-rw-r--r-- | drivers/staging/gdm72xx/gdm_wimax.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/gdm72xx/gdm_wimax.c b/drivers/staging/gdm72xx/gdm_wimax.c index f96f1d0b0951..0f71d419ede6 100644 --- a/drivers/staging/gdm72xx/gdm_wimax.c +++ b/drivers/staging/gdm72xx/gdm_wimax.c @@ -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; |