IB/nes: Fix indentation
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 11 Oct 2017 17:49:09 +0000 (10:49 -0700)
committerDoug Ledford <dledford@redhat.com>
Sun, 15 Oct 2017 00:47:06 +0000 (20:47 -0400)
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Faisal Latif <faisal.latif@intel.com>
Acked-by: Faisal Latif <fasial.latif@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/nes/nes.c
drivers/infiniband/hw/nes/nes_hw.c
drivers/infiniband/hw/nes/nes_nic.c
drivers/infiniband/hw/nes/nes_utils.c
drivers/infiniband/hw/nes/nes_verbs.c

index 942ca84713c91dc245f4ecc57f2e1fa33a0f7624..ff58dfa071b83ab0effd940dec39d1946b7d58af 100644 (file)
@@ -757,18 +757,18 @@ static void nes_remove(struct pci_dev *pcidev)
        int netdev_index = 0;
        unsigned long flags;
 
-               if (nesdev->netdev_count) {
-                       netdev = nesdev->netdev[netdev_index];
-                       if (netdev) {
-                               netif_stop_queue(netdev);
-                               unregister_netdev(netdev);
-                               nes_netdev_destroy(netdev);
-
-                               nesdev->netdev[netdev_index] = NULL;
-                               nesdev->netdev_count--;
-                               nesdev->nesadapter->netdev_count--;
-                       }
+       if (nesdev->netdev_count) {
+               netdev = nesdev->netdev[netdev_index];
+               if (netdev) {
+                       netif_stop_queue(netdev);
+                       unregister_netdev(netdev);
+                       nes_netdev_destroy(netdev);
+
+                       nesdev->netdev[netdev_index] = NULL;
+                       nesdev->netdev_count--;
+                       nesdev->nesadapter->netdev_count--;
                }
+       }
 
        nes_notifiers_registered--;
        if (nes_notifiers_registered == 0) {
index b0adf65e4bdbf4c1e19f4b75c1b805b9d42ef622..812b59d8f13cb16e807bdda05194790f27d040c5 100644 (file)
@@ -1861,8 +1861,9 @@ int nes_init_nic_qp(struct nes_device *nesdev, struct net_device *netdev)
        }
        if ((nesdev->nesadapter->allow_unaligned_fpdus) &&
                (nes_init_mgt_qp(nesdev, netdev, nesvnic))) {
-                       nes_debug(NES_DBG_INIT, "%s: Out of memory for pau nic\n", netdev->name);
-                       nes_destroy_nic_qp(nesvnic);
+               nes_debug(NES_DBG_INIT, "%s: Out of memory for pau nic\n",
+                         netdev->name);
+               nes_destroy_nic_qp(nesvnic);
                return -ENOMEM;
        }
 
index 5921ea3d50ae436996913e3ac38ca0a2d6d60a31..6977fcfcbb761c08e0e63e281095aa7e83377661 100644 (file)
@@ -926,11 +926,10 @@ static void nes_netdev_set_multicast_list(struct net_device *netdev)
                                nesadapter->pft_mcast_map[mc_index] !=
                                        nesvnic->nic_index &&
                                        mc_index < max_pft_entries_avaiable) {
-                                               nes_debug(NES_DBG_NIC_RX,
-                                       "mc_index=%d skipping nic_index=%d, "
-                                       "used for=%d \n", mc_index,
-                                       nesvnic->nic_index,
-                                       nesadapter->pft_mcast_map[mc_index]);
+                               nes_debug(NES_DBG_NIC_RX,
+                                         "mc_index=%d skipping nic_index=%d, used for=%d\n",
+                                         mc_index, nesvnic->nic_index,
+                                         nesadapter->pft_mcast_map[mc_index]);
                                mc_index++;
                        }
                        if (mc_index >= max_pft_entries_avaiable)
index 37331e2fdc5fde5bc075582e353bb81a6ace99b6..7b67e9cb57ede759e449d404c1b1bcc6ac87a240 100644 (file)
@@ -888,10 +888,10 @@ void nes_clc(unsigned long parm)
        struct nes_adapter *nesadapter = nesdev->nesadapter;
 
        spin_lock_irqsave(&nesadapter->phy_lock, flags);
-    nesadapter->link_interrupt_count[0] = 0;
-    nesadapter->link_interrupt_count[1] = 0;
-    nesadapter->link_interrupt_count[2] = 0;
-    nesadapter->link_interrupt_count[3] = 0;
+       nesadapter->link_interrupt_count[0] = 0;
+       nesadapter->link_interrupt_count[1] = 0;
+       nesadapter->link_interrupt_count[2] = 0;
+       nesadapter->link_interrupt_count[3] = 0;
        spin_unlock_irqrestore(&nesadapter->phy_lock, flags);
 
        nesadapter->lc_timer.expires = jiffies + 3600 * HZ;  /* 1 hour */
index f0dc5f4aa177e26d622574ec638368fcb7d988cf..6abe90b58c91d552473c1b338a4c1c54a5d8d4ef 100644 (file)
@@ -2865,11 +2865,11 @@ int nes_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
 
                                next_iwarp_state = NES_CQP_QP_IWARP_STATE_ERROR;
                                /* next_iwarp_state = (NES_CQP_QP_IWARP_STATE_TERMINATE | 0x02000000); */
-                                       if (nesqp->hte_added) {
-                                               nes_debug(NES_DBG_MOD_QP, "set CQP_QP_DEL_HTE\n");
-                                               next_iwarp_state |= NES_CQP_QP_DEL_HTE;
-                                               nesqp->hte_added = 0;
-                                       }
+                               if (nesqp->hte_added) {
+                                       nes_debug(NES_DBG_MOD_QP, "set CQP_QP_DEL_HTE\n");
+                                       next_iwarp_state |= NES_CQP_QP_DEL_HTE;
+                                       nesqp->hte_added = 0;
+                               }
                                if ((nesqp->hw_tcp_state > NES_AEQE_TCP_STATE_CLOSED) &&
                                                (nesdev->iw_status) &&
                                                (nesqp->hw_tcp_state != NES_AEQE_TCP_STATE_TIME_WAIT)) {
@@ -3560,7 +3560,7 @@ static int nes_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *entry)
                                entry->byte_len = le32_to_cpu(cqe.cqe_words[NES_CQE_PAYLOAD_LENGTH_IDX]);
                                wrid = ((u64)(le32_to_cpu(nesqp->hwqp.rq_vbase[wqe_index].wqe_words[NES_IWARP_RQ_WQE_COMP_SCRATCH_LOW_IDX]))) |
                                        ((u64)(le32_to_cpu(nesqp->hwqp.rq_vbase[wqe_index].wqe_words[NES_IWARP_RQ_WQE_COMP_SCRATCH_HIGH_IDX]))<<32);
-                                       entry->opcode = IB_WC_RECV;
+                               entry->opcode = IB_WC_RECV;
 
                                nesqp->hwqp.rq_tail = (wqe_index+1)&(nesqp->hwqp.rq_size - 1);
                                if ((entry->status != IB_WC_SUCCESS) && (nesqp->hwqp.rq_tail != nesqp->hwqp.rq_head)) {