From: Emil Tantilov Date: Wed, 27 Apr 2011 08:51:29 +0000 (+0000) Subject: e100: fix build warning X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dca97ad2ec37aa98c45dfe1d531d9ba7048e814e;p=mv-sheeva.git e100: fix build warning In function 'e100_hw_init': warning: 'err' may be used uninitialized in this function Signed-off-by: Emil Tantilov Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/e100.c b/drivers/net/e100.c index c810cda3bf1..29f812dc109 100644 --- a/drivers/net/e100.c +++ b/drivers/net/e100.c @@ -1512,7 +1512,7 @@ static int e100_phy_init(struct nic *nic) static int e100_hw_init(struct nic *nic) { - int err; + int err = 0; e100_hw_reset(nic);