[openib-general] [PATCH]remove redundant assignment in ib_post_send_mad()
Shirley Ma
mashirle at us.ibm.com
Mon Nov 1 15:01:26 PST 2004
I am using my unix account to send the patch. Hope it works.
diff -urN access/mad.c access.patch2/mad.c
--- access/mad.c 2004-11-01 14:51:41.356902216 -0800
+++ access.patch2/mad.c 2004-11-01 14:53:37.003321288 -0800
@@ -368,16 +368,15 @@
struct ib_mad_agent_private *mad_agent_priv;
struct ib_mad_port_private *port_priv;
- cur_send_wr = send_wr;
/* Validate supplied parameters */
if (!mad_agent || !send_wr) {
- *bad_send_wr = cur_send_wr;
+ *bad_send_wr = send_wr;
return -EINVAL;
}
if (!mad_agent->send_handler ||
(send_wr->wr.ud.timeout_ms && !mad_agent->recv_handler)) {
- *bad_send_wr = cur_send_wr;
+ *bad_send_wr = send_wr;
return -EINVAL;
}
--
Thanks
Shirley Ma
IBM Linux Technology Center
More information about the general
mailing list