aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e100.c
diff options
context:
space:
mode:
authorEmil Tantilov <emil.s.tantilov@intel.com>2011-04-27 08:51:29 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-05-04 12:01:24 -0700
commitdca97ad2ec37aa98c45dfe1d531d9ba7048e814e (patch)
tree190cb6c3a28d0bd7b99e2b86c8b92816f663d5a6 /drivers/net/e100.c
parente67f88dd12f610da98ca838822f2c9b4e7c6100e (diff)
downloadkernel_samsung_crespo-dca97ad2ec37aa98c45dfe1d531d9ba7048e814e.zip
kernel_samsung_crespo-dca97ad2ec37aa98c45dfe1d531d9ba7048e814e.tar.gz
kernel_samsung_crespo-dca97ad2ec37aa98c45dfe1d531d9ba7048e814e.tar.bz2
e100: fix build warning
In function 'e100_hw_init': warning: 'err' may be used uninitialized in this function Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/e100.c')
-rw-r--r--drivers/net/e100.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/e100.c b/drivers/net/e100.c
index c810cda..29f812d 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);