diff options
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 1830f3199cb5..ab54821f6709 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) | |||
681 | priv->rx_queue[i] = NULL; | 681 | priv->rx_queue[i] = NULL; |
682 | 682 | ||
683 | for (i = 0; i < priv->num_tx_queues; i++) { | 683 | for (i = 0; i < priv->num_tx_queues; i++) { |
684 | priv->tx_queue[i] = (struct gfar_priv_tx_q *)kzalloc( | 684 | priv->tx_queue[i] = kzalloc(sizeof(struct gfar_priv_tx_q), |
685 | sizeof (struct gfar_priv_tx_q), GFP_KERNEL); | 685 | GFP_KERNEL); |
686 | if (!priv->tx_queue[i]) { | 686 | if (!priv->tx_queue[i]) { |
687 | err = -ENOMEM; | 687 | err = -ENOMEM; |
688 | goto tx_alloc_failed; | 688 | goto tx_alloc_failed; |
@@ -694,8 +694,8 @@ static int gfar_of_init(struct of_device *ofdev, struct net_device **pdev) | |||
694 | } | 694 | } |
695 | 695 | ||
696 | for (i = 0; i < priv->num_rx_queues; i++) { | 696 | for (i = 0; i < priv->num_rx_queues; i++) { |
697 | priv->rx_queue[i] = (struct gfar_priv_rx_q *)kzalloc( | 697 | priv->rx_queue[i] = kzalloc(sizeof(struct gfar_priv_rx_q), |
698 | sizeof (struct gfar_priv_rx_q), GFP_KERNEL); | 698 | GFP_KERNEL); |
699 | if (!priv->rx_queue[i]) { | 699 | if (!priv->rx_queue[i]) { |
700 | err = -ENOMEM; | 700 | err = -ENOMEM; |
701 | goto rx_alloc_failed; | 701 | goto rx_alloc_failed; |