diff options
-rw-r--r-- | drivers/net/korina.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/korina.c b/drivers/net/korina.c index 60ae7bfb1d9b..75010cac76ac 100644 --- a/drivers/net/korina.c +++ b/drivers/net/korina.c | |||
@@ -743,6 +743,7 @@ static struct ethtool_ops netdev_ethtool_ops = { | |||
743 | static void korina_alloc_ring(struct net_device *dev) | 743 | static void korina_alloc_ring(struct net_device *dev) |
744 | { | 744 | { |
745 | struct korina_private *lp = netdev_priv(dev); | 745 | struct korina_private *lp = netdev_priv(dev); |
746 | struct sk_buff *skb; | ||
746 | int i; | 747 | int i; |
747 | 748 | ||
748 | /* Initialize the transmit descriptors */ | 749 | /* Initialize the transmit descriptors */ |
@@ -758,8 +759,6 @@ static void korina_alloc_ring(struct net_device *dev) | |||
758 | 759 | ||
759 | /* Initialize the receive descriptors */ | 760 | /* Initialize the receive descriptors */ |
760 | for (i = 0; i < KORINA_NUM_RDS; i++) { | 761 | for (i = 0; i < KORINA_NUM_RDS; i++) { |
761 | struct sk_buff *skb = lp->rx_skb[i]; | ||
762 | |||
763 | skb = dev_alloc_skb(KORINA_RBSIZE + 2); | 762 | skb = dev_alloc_skb(KORINA_RBSIZE + 2); |
764 | if (!skb) | 763 | if (!skb) |
765 | break; | 764 | break; |