fm10k: do not use enum as boolean
authorJacob Keller <jacob.e.keller@intel.com>
Tue, 25 Aug 2015 00:02:00 +0000 (17:02 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 14 Oct 2015 06:51:37 +0000 (23:51 -0700)
commitb4a5127b03b7f0b06dcaf08a878ffc93ad53fa82
tree4460ecef6a0be548b806e5c5ea19dc425a1b145b
parentf6f19f8bb9afcd0e9970fe51b5affa3063af4499
fm10k: do not use enum as boolean

Check for actual value NETREG_UNINITIALIZED in case it ever changes from
the current value of zero.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_main.c