igb: Cleanups to fix assignment in if error
authorCarolyn Wyborny <[email protected]>
Fri, 11 Apr 2014 01:46:13 +0000 (01:46 +0000)
committerJeff Kirsher <[email protected]>
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 <[email protected]>
Tested-by: Aaron Brown <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
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: