rb532: check the link status with a timer
[10.03/openwrt.git] / target / linux / rb532 / patches-2.6.28 / 016-korina_drop_left_over_assignment.patch
1 As the assigned value is being overwritten shortly after, it can be
2 dropped and so the whole variable definition moved to the start of the
3 function.
4
5 Signed-off-by: Phil Sutter <n0-1@freewrt.org>
6 ---
7  drivers/net/korina.c |    3 +--
8  1 files changed, 1 insertions(+), 2 deletions(-)
9
10 --- a/drivers/net/korina.c
11 +++ b/drivers/net/korina.c
12 @@ -738,6 +738,7 @@ static struct ethtool_ops netdev_ethtool
13  static void korina_alloc_ring(struct net_device *dev)
14  {
15         struct korina_private *lp = netdev_priv(dev);
16 +       struct sk_buff *skb;
17         int i;
18  
19         /* Initialize the transmit descriptors */
20 @@ -753,8 +754,6 @@ static void korina_alloc_ring(struct net
21  
22         /* Initialize the receive descriptors */
23         for (i = 0; i < KORINA_NUM_RDS; i++) {
24 -               struct sk_buff *skb = lp->rx_skb[i];
25 -
26                 skb = dev_alloc_skb(KORINA_RBSIZE + 2);
27                 if (!skb)
28                         break;