]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
tg3: Remove redundant if check
authorNithin Sujir <nsujir@broadcom.com>
Fri, 20 Sep 2013 23:46:59 +0000 (16:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Sep 2013 18:04:52 +0000 (14:04 -0400)
Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c

index a1a07f3ad4ad1ba21084c72d9766bd179d0500fc..00431bcefc41b2b046057d9aca4b1519713a7a63 100644 (file)
@@ -9203,10 +9203,7 @@ static int tg3_halt(struct tg3 *tp, int kind, bool silent)
                memset(tp->hw_stats, 0, sizeof(struct tg3_hw_stats));
        }
 
-       if (err)
-               return err;
-
-       return 0;
+       return err;
 }
 
 static int tg3_set_mac_addr(struct net_device *dev, void *p)