Fix indentation.
MFC after: 1 week
This commit is contained in:
parent
7d506d0d57
commit
e804572d2b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319952
@ -1702,29 +1702,29 @@ int ib_post_send_mad(struct ib_mad_send_buf *send_buf,
|
||||
if (ret < 0)
|
||||
goto error;
|
||||
} else {
|
||||
/* Reference MAD agent until send completes */
|
||||
atomic_inc(&mad_agent_priv->refcount);
|
||||
spin_lock_irqsave(&mad_agent_priv->lock, flags);
|
||||
list_add_tail(&mad_send_wr->agent_list,
|
||||
&mad_agent_priv->send_list);
|
||||
spin_unlock_irqrestore(&mad_agent_priv->lock, flags);
|
||||
|
||||
if (mad_agent_priv->agent.rmpp_version) {
|
||||
ret = ib_send_rmpp_mad(mad_send_wr);
|
||||
if (ret >= 0 && ret != IB_RMPP_RESULT_CONSUMED)
|
||||
ret = ib_send_mad(mad_send_wr);
|
||||
} else
|
||||
ret = ib_send_mad(mad_send_wr);
|
||||
if (ret < 0) {
|
||||
/* Fail send request */
|
||||
/* Reference MAD agent until send completes */
|
||||
atomic_inc(&mad_agent_priv->refcount);
|
||||
spin_lock_irqsave(&mad_agent_priv->lock, flags);
|
||||
list_del(&mad_send_wr->agent_list);
|
||||
list_add_tail(&mad_send_wr->agent_list,
|
||||
&mad_agent_priv->send_list);
|
||||
spin_unlock_irqrestore(&mad_agent_priv->lock, flags);
|
||||
atomic_dec(&mad_agent_priv->refcount);
|
||||
goto error;
|
||||
|
||||
if (mad_agent_priv->agent.rmpp_version) {
|
||||
ret = ib_send_rmpp_mad(mad_send_wr);
|
||||
if (ret >= 0 && ret != IB_RMPP_RESULT_CONSUMED)
|
||||
ret = ib_send_mad(mad_send_wr);
|
||||
} else
|
||||
ret = ib_send_mad(mad_send_wr);
|
||||
if (ret < 0) {
|
||||
/* Fail send request */
|
||||
spin_lock_irqsave(&mad_agent_priv->lock, flags);
|
||||
list_del(&mad_send_wr->agent_list);
|
||||
spin_unlock_irqrestore(&mad_agent_priv->lock, flags);
|
||||
atomic_dec(&mad_agent_priv->refcount);
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
error:
|
||||
if (bad_send_buf)
|
||||
|
Loading…
Reference in New Issue
Block a user