Loading drivers/net/gianfar.c +4 −4 Original line number Original line Diff line number Diff line Loading @@ -681,8 +681,8 @@ static int gfar_of_init(struct of_device *ofdev, struct net_device **pdev) priv->rx_queue[i] = NULL; priv->rx_queue[i] = NULL; for (i = 0; i < priv->num_tx_queues; i++) { for (i = 0; i < priv->num_tx_queues; i++) { priv->tx_queue[i] = (struct gfar_priv_tx_q *)kzalloc( priv->tx_queue[i] = kzalloc(sizeof(struct gfar_priv_tx_q), sizeof (struct gfar_priv_tx_q), GFP_KERNEL); GFP_KERNEL); if (!priv->tx_queue[i]) { if (!priv->tx_queue[i]) { err = -ENOMEM; err = -ENOMEM; goto tx_alloc_failed; goto tx_alloc_failed; Loading @@ -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++) { for (i = 0; i < priv->num_rx_queues; i++) { priv->rx_queue[i] = (struct gfar_priv_rx_q *)kzalloc( priv->rx_queue[i] = kzalloc(sizeof(struct gfar_priv_rx_q), sizeof (struct gfar_priv_rx_q), GFP_KERNEL); GFP_KERNEL); if (!priv->rx_queue[i]) { if (!priv->rx_queue[i]) { err = -ENOMEM; err = -ENOMEM; goto rx_alloc_failed; goto rx_alloc_failed; Loading Loading
drivers/net/gianfar.c +4 −4 Original line number Original line Diff line number Diff line Loading @@ -681,8 +681,8 @@ static int gfar_of_init(struct of_device *ofdev, struct net_device **pdev) priv->rx_queue[i] = NULL; priv->rx_queue[i] = NULL; for (i = 0; i < priv->num_tx_queues; i++) { for (i = 0; i < priv->num_tx_queues; i++) { priv->tx_queue[i] = (struct gfar_priv_tx_q *)kzalloc( priv->tx_queue[i] = kzalloc(sizeof(struct gfar_priv_tx_q), sizeof (struct gfar_priv_tx_q), GFP_KERNEL); GFP_KERNEL); if (!priv->tx_queue[i]) { if (!priv->tx_queue[i]) { err = -ENOMEM; err = -ENOMEM; goto tx_alloc_failed; goto tx_alloc_failed; Loading @@ -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++) { for (i = 0; i < priv->num_rx_queues; i++) { priv->rx_queue[i] = (struct gfar_priv_rx_q *)kzalloc( priv->rx_queue[i] = kzalloc(sizeof(struct gfar_priv_rx_q), sizeof (struct gfar_priv_rx_q), GFP_KERNEL); GFP_KERNEL); if (!priv->rx_queue[i]) { if (!priv->rx_queue[i]) { err = -ENOMEM; err = -ENOMEM; goto rx_alloc_failed; goto rx_alloc_failed; Loading