net/ixgbe/base: fix build error
[dpdk.git] / drivers / net / ixgbe / ixgbe_bypass.c
index 832f415..7006928 100644 (file)
@@ -46,7 +46,7 @@
                            __func__, __LINE__);            \
                return retval;                            \
        }                                                   \
-} while(0)
+} while (0)
 
 #define        FUNC_PTR_OR_RET(func) do {                          \
        if ((func) == NULL) {                               \
@@ -54,7 +54,7 @@
                            __func__, __LINE__);            \
                return;                                     \
        }                                                   \
-} while(0)
+} while (0)
 
 
 /**
@@ -82,7 +82,7 @@ ixgbe_bypass_set_time(struct ixgbe_adapter *adapter)
               BYPASS_CTL1_VALID_M |
               BYPASS_CTL1_OFFTRST_M;
        value = (sec & BYPASS_CTL1_TIME_M) |
-               BYPASS_CTL1_VALID |
+               BYPASS_CTL1_VALID |
                BYPASS_CTL1_OFFTRST;
 
        FUNC_PTR_OR_RET(adapter->bps.ops.bypass_set);
@@ -153,7 +153,7 @@ ixgbe_bypass_state_show(struct rte_eth_dev *dev, u32 *state)
         */
        *state = (by_ctl >> BYPASS_STATUS_OFF_SHIFT) &  BYPASS_STATUS_OFF_MASK;
 
-       return (ret_val);
+       return ret_val;
 }
 
 
@@ -275,8 +275,8 @@ s32
 ixgbe_bypass_wd_timeout_store(struct rte_eth_dev *dev, u32 timeout)
 {
        struct ixgbe_hw *hw;
-        u32 status;
-        u32 mask;
+       u32 status;
+       u32 mask;
        s32 ret_val;
        struct ixgbe_adapter *adapter = IXGBE_DEV_TO_ADPATER(dev);