fm10k: remove unnecessary extra parenthesis around ((~value))
authorJacob Keller <[email protected]>
Fri, 22 Jul 2016 23:00:37 +0000 (16:00 -0700)
committerJeff Kirsher <[email protected]>
Mon, 29 Aug 2016 08:31:03 +0000 (01:31 -0700)
Signed-off-by: Jacob Keller <[email protected]>
Tested-by: Krishneil Singh <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
drivers/net/ethernet/intel/fm10k/fm10k_pci.c

index 0a20ca16853543e24d99758fb5bab9cc72aa93bd..d7f1ecad937815616a6d3e2aec35292c220e92de 100644 (file)
@@ -133,7 +133,7 @@ static void fm10k_detach_subtask(struct fm10k_intfc *interface)
        /* check the real address space to see if we've recovered */
        hw_addr = READ_ONCE(interface->uc_addr);
        value = readl(hw_addr);
-       if ((~value)) {
+       if (~value) {
                interface->hw.hw_addr = interface->uc_addr;
                netif_device_attach(netdev);
                interface->flags |= FM10K_FLAG_RESET_REQUESTED;