igb: Cleanups to fix assignment in if error
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Fri, 11 Apr 2014 01:46:13 +0000 (01:46 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 25 Apr 2014 00:26:28 +0000 (17:26 -0700)
This patch fixes ERROR:ASSIGN_IN_IF found with checkpatch file check.

Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c

index 299ac141514680e25737549b90fdce44cf3cbb48..6469f9715e1b55ec2a150652f24bed5e465625af 100644 (file)
@@ -4056,7 +4056,8 @@ static void igb_check_wvbr(struct igb_adapter *adapter)
        switch (hw->mac.type) {
        case e1000_82576:
        case e1000_i350:
-               if (!(wvbr = rd32(E1000_WVBR)))
+               wvbr = rd32(E1000_WVBR);
+               if (!wvbr)
                        return;
                break;
        default: