[openib-general] [PATCH] Cleanup spaces to tabs

Krishna Kumar krkumar at us.ibm.com
Wed Nov 3 10:45:20 PST 2004


Entire openib cleaned up to remove 8 spaces to replace with
tabs, just two files though :-)

thx,

- KK

diff -ruN 1/agent.c 2/agent.c
--- 1/agent.c	2004-11-03 10:42:29.000000000 -0800
+++ 2/agent.c	2004-11-03 10:43:24.000000000 -0800
@@ -207,7 +207,7 @@
 		if (hop_ptr == 1) {
 			if (smp->dr_slid == IB_LID_PERMISSIVE) {
 				/* giving SMP to SM - update hop_ptr */
-                                smp->hop_ptr--;
+				smp->hop_ptr--;
 				return 1;
 			}
 			/* smp->hop_ptr updated when sending */
@@ -373,7 +373,7 @@
 					  PCI_DMA_TODEVICE);
 	gather_list.length = sizeof(struct ib_mad);
 	gather_list.lkey = (*port_priv->mr).lkey;
-
+
 	send_wr.next = NULL;
 	send_wr.opcode = IB_WR_SEND;
 	send_wr.sg_list = &gather_list;
@@ -381,7 +381,7 @@
 	send_wr.wr.ud.remote_qpn = mad_recv_wc->wc->src_qp; /* DQPN */
 	send_wr.wr.ud.timeout_ms = 0;
 	send_wr.send_flags = IB_SEND_SIGNALED | IB_SEND_SOLICITED;
-
+
 	ah_attr.dlid = mad_recv_wc->wc->slid;
 	ah_attr.port_num = mad_agent->port_num;
 	ah_attr.src_path_bits = mad_recv_wc->wc->dlid_path_bits;
@@ -410,7 +410,7 @@
 		kfree(agent_send_wr);
 		goto out;
 	}
-
+
 	send_wr.wr.ud.ah = agent_send_wr->ah;
 	if (mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT) {
 		send_wr.wr.ud.pkey_index = mad_recv_wc->wc->pkey_index;
@@ -560,8 +560,8 @@
 {
 	struct ib_agent_port_private	*port_priv;
 	struct ib_agent_send_wr		*agent_send_wr;
-	struct list_head                *send_wr;
-	unsigned long                   flags;
+	struct list_head		*send_wr;
+	unsigned long			flags;

 	/* Find matching MAD agent */
 	port_priv = ib_get_agent_mad(NULL, 0, mad_agent);
@@ -579,7 +579,7 @@
 		       "is empty\n", (unsigned long long) mad_send_wc->wr_id);
 		return;
 	}
-
+
 	agent_send_wr = list_entry(&port_priv->send_posted_list,
 				    struct ib_agent_send_wr,
 				    send_list);
@@ -588,8 +588,8 @@
 				     send_list);

 	/* Remove from posted send MAD list */
-        list_del(&agent_send_wr->send_list);
-        spin_unlock_irqrestore(&port_priv->send_list_lock, flags);
+	list_del(&agent_send_wr->send_list);
+	spin_unlock_irqrestore(&port_priv->send_list_lock, flags);

 	/* Unmap PCI */
 	pci_unmap_single(mad_agent->device->dma_device,
@@ -694,11 +694,11 @@
 		goto error3;
 	}

-        /* Obtain MAD agent for PerfMgmt class */
-        reg_req.mgmt_class = IB_MGMT_CLASS_PERF_MGMT;
+	/* Obtain MAD agent for PerfMgmt class */
+	reg_req.mgmt_class = IB_MGMT_CLASS_PERF_MGMT;
 	clear_bit(IB_MGMT_METHOD_TRAP_REPRESS,
 		  (unsigned long *)&reg_req.method_mask);
-        port_priv->perf_mgmt_agent = ib_register_mad_agent(device, port_num,
+	port_priv->perf_mgmt_agent = ib_register_mad_agent(device, port_num,
 							   IB_QPT_GSI,
 						  	  &reg_req, 0,
 							  &agent_send_handler,
@@ -756,7 +756,7 @@
 	ib_unregister_mad_agent(port_priv->perf_mgmt_agent);
 	ib_unregister_mad_agent(port_priv->lr_smp_agent);
 	ib_unregister_mad_agent(port_priv->dr_smp_agent);
-        kfree(port_priv);
+	kfree(port_priv);

 	return 0;
 }
diff -ruN 1/mad.c 2/mad.c
--- 1/mad.c	2004-11-03 10:42:29.000000000 -0800
+++ 2/mad.c	2004-11-03 10:43:12.000000000 -0800
@@ -1473,7 +1473,7 @@
 	struct ib_qp_attr *attr;
 	int attr_mask;

-        attr =  kmalloc(sizeof *attr, GFP_KERNEL);
+	attr =  kmalloc(sizeof *attr, GFP_KERNEL);
 	if (!attr) {
 		printk(KERN_ERR PFX "Couldn't allocate memory for ib_qp_attr\n");
 		return -ENOMEM;




More information about the general mailing list