e100: fix build warning
authorEmil Tantilov <emil.s.tantilov@intel.com>
Wed, 27 Apr 2011 08:51:29 +0000 (08:51 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 4 May 2011 19:01:24 +0000 (12:01 -0700)
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>
drivers/net/e100.c

index c810cda3bf1ff91c63f640809699d8ffe9dbee4f..29f812dc10982b4b6d445be0d1cd6ac32734bd1d 100644 (file)
@@ -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);