summaryrefslogtreecommitdiffstats
path: root/drivers/net/e100.c
diff options
context:
space:
mode:
authorEmil Tantilov <emil.s.tantilov@intel.com>2011-04-27 10:51:29 +0200
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-05-04 21:01:24 +0200
commitdca97ad2ec37aa98c45dfe1d531d9ba7048e814e (patch)
tree190cb6c3a28d0bd7b99e2b86c8b92816f663d5a6 /drivers/net/e100.c
parentnet: dont hold rtnl mutex during netlink dump callbacks (diff)
downloadlinux-dca97ad2ec37aa98c45dfe1d531d9ba7048e814e.tar.xz
linux-dca97ad2ec37aa98c45dfe1d531d9ba7048e814e.zip
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 c810cda3bf1f..29f812dc1098 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);