IB: Whitespace fixes
Remove some trailing whitespace that has snuck in despite the best efforts of whitespace=error-all. Also fix a few other whitespace bogosities. Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
@ -1246,8 +1246,8 @@ static int find_vendor_oui(struct ib_mad_mgmt_vendor_class *vendor_class,
|
||||
int i;
|
||||
|
||||
for (i = 0; i < MAX_MGMT_OUI; i++)
|
||||
/* Is there matching OUI for this vendor class ? */
|
||||
if (!memcmp(vendor_class->oui[i], oui, 3))
|
||||
/* Is there matching OUI for this vendor class ? */
|
||||
if (!memcmp(vendor_class->oui[i], oui, 3))
|
||||
return i;
|
||||
|
||||
return -1;
|
||||
@ -2237,7 +2237,7 @@ static void cancel_mads(struct ib_mad_agent_private *mad_agent_priv)
|
||||
list_for_each_entry_safe(mad_send_wr, temp_mad_send_wr,
|
||||
&mad_agent_priv->send_list, agent_list) {
|
||||
if (mad_send_wr->status == IB_WC_SUCCESS) {
|
||||
mad_send_wr->status = IB_WC_WR_FLUSH_ERR;
|
||||
mad_send_wr->status = IB_WC_WR_FLUSH_ERR;
|
||||
mad_send_wr->refcount -= (mad_send_wr->timeout > 0);
|
||||
}
|
||||
}
|
||||
@ -2528,10 +2528,10 @@ static int ib_mad_post_receive_mads(struct ib_mad_qp_info *qp_info,
|
||||
}
|
||||
}
|
||||
sg_list.addr = dma_map_single(qp_info->port_priv->
|
||||
device->dma_device,
|
||||
device->dma_device,
|
||||
&mad_priv->grh,
|
||||
sizeof *mad_priv -
|
||||
sizeof mad_priv->header,
|
||||
sizeof mad_priv->header,
|
||||
DMA_FROM_DEVICE);
|
||||
pci_unmap_addr_set(&mad_priv->header, mapping, sg_list.addr);
|
||||
recv_wr.wr_id = (unsigned long)&mad_priv->header.mad_list;
|
||||
@ -2606,7 +2606,7 @@ static int ib_mad_port_start(struct ib_mad_port_private *port_priv)
|
||||
struct ib_qp *qp;
|
||||
|
||||
attr = kmalloc(sizeof *attr, GFP_KERNEL);
|
||||
if (!attr) {
|
||||
if (!attr) {
|
||||
printk(KERN_ERR PFX "Couldn't kmalloc ib_qp_attr\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
Reference in New Issue
Block a user