[openib-general] [PATCH][6/6] IB: Remove incorrect comments

Roland Dreier roland at topspin.com
Fri Apr 1 10:23:51 PST 2005


From: Hal Rosenstock <halr at voltaire.com>

Eliminate unneeded and misleading comments

Signed-off-by: Hal Rosenstock <halr at voltaire.com>
Signed-off-by: Roland Dreier <roland at topspin.com>


--- linux-export.orig/drivers/infiniband/core/agent.c	2005-03-31 19:06:48.000000000 -0800
+++ linux-export/drivers/infiniband/core/agent.c	2005-04-01 10:09:02.621290525 -0800
@@ -129,7 +129,6 @@
 		goto out;
 	agent_send_wr->mad = mad_priv;
 
-	/* PCI mapping */
 	gather_list.addr = dma_map_single(mad_agent->device->dma_device,
 					  &mad_priv->mad,
 					  sizeof(mad_priv->mad),
@@ -261,7 +260,6 @@
 	list_del(&agent_send_wr->send_list);
 	spin_unlock_irqrestore(&port_priv->send_list_lock, flags);
 
-	/* Unmap PCI */
 	dma_unmap_single(mad_agent->device->dma_device,
 			 pci_unmap_addr(agent_send_wr, mapping),
 			 sizeof(agent_send_wr->mad->mad),
--- linux-export.orig/drivers/infiniband/core/mad.c	2005-04-01 10:08:56.473624910 -0800
+++ linux-export/drivers/infiniband/core/mad.c	2005-04-01 10:09:02.768258624 -0800
@@ -2283,7 +2283,6 @@
 		/* Remove from posted receive MAD list */
 		list_del(&mad_list->list);
 
-		/* Undo PCI mapping */
 		dma_unmap_single(qp_info->port_priv->device->dma_device,
 				 pci_unmap_addr(&recv->header, mapping),
 				 sizeof(struct ib_mad_private) -




More information about the general mailing list