The value of status was incorrectly tested. Also whitespace cleanup.
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Evan Swanson <evan.swanson@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
        IXGBE_WRITE_REG(hw, IXGBE_EEC, flup);
 
        status = ixgbe_poll_flash_update_done_X540(hw);
-       if (status)
+       if (status == 0)
                hw_dbg(hw, "Flash update complete\n");
        else
                hw_dbg(hw, "Flash update time out\n");
                }
 
                status = ixgbe_poll_flash_update_done_X540(hw);
-               if (status)
+               if (status == 0)
                        hw_dbg(hw, "Flash update complete\n");
                else
                        hw_dbg(hw, "Flash update time out\n");
-
        }
 out:
        return status;