diff options
author | Joe Perches <joe@perches.com> | 2010-05-31 17:23:12 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-01 00:15:52 -0700 |
commit | de47f07264b287f7b1b2ec0e06da98e1c199cd0d (patch) | |
tree | da291bdaeb8c168a10bc079be4006cd50f93e1ff /drivers/net/gianfar.c | |
parent | f25b03a7bd260b939b1a6aa69ca518d9848bb63a (diff) | |
download | op-kernel-dev-de47f07264b287f7b1b2ec0e06da98e1c199cd0d.zip op-kernel-dev-de47f07264b287f7b1b2ec0e06da98e1c199cd0d.tar.gz |
drivers/net/gianfar.c: Remove unnecessary kmalloc casts
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/gianfar.c')
-rw-r--r-- | drivers/net/gianfar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index 1830f31..ab54821 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c @@ -681,8 +681,8 @@ static int gfar_of_init(struct of_device *ofdev, struct net_device **pdev) priv->rx_queue[i] = NULL; for (i = 0; i < priv->num_tx_queues; i++) { - priv->tx_queue[i] = (struct gfar_priv_tx_q *)kzalloc( - sizeof (struct gfar_priv_tx_q), GFP_KERNEL); + priv->tx_queue[i] = kzalloc(sizeof(struct gfar_priv_tx_q), + GFP_KERNEL); if (!priv->tx_queue[i]) { err = -ENOMEM; goto tx_alloc_failed; @@ -694,8 +694,8 @@ static int gfar_of_init(struct of_device *ofdev, struct net_device **pdev) } for (i = 0; i < priv->num_rx_queues; i++) { - priv->rx_queue[i] = (struct gfar_priv_rx_q *)kzalloc( - sizeof (struct gfar_priv_rx_q), GFP_KERNEL); + priv->rx_queue[i] = kzalloc(sizeof(struct gfar_priv_rx_q), + GFP_KERNEL); if (!priv->rx_queue[i]) { err = -ENOMEM; goto rx_alloc_failed; |