[openib-general] [PATCH][TRIVIAL] cm: remove compile warning
Tom Duffy
tduffy at sun.com
Wed May 18 14:31:14 PDT 2005
This patch removes the compile warning:
CC [M] drivers/infiniband/core/cm.o
/build1/tduffy/openib-work/linux-2.6.12-rc4-openib/drivers/infiniband/core/cm.c: In function ‘cm_issue_rej’:
/build1/tduffy/openib-work/linux-2.6.12-rc4-openib/drivers/infiniband/core/cm.c:887: warning: ‘msg’ may be used uninitialized in this function
Signed-off-by: Tom Duffy <tduffy at sun.com>
Index: drivers/infiniband/core/cm.c
===================================================================
--- drivers/infiniband/core/cm.c (revision 2397)
+++ drivers/infiniband/core/cm.c (working copy)
@@ -884,7 +884,7 @@ static int cm_issue_rej(struct cm_port *
enum cm_msg_response msg_rejected,
void *ari, u8 ari_length)
{
- struct ib_mad_send_buf *msg;
+ struct ib_mad_send_buf *msg = NULL;
struct ib_send_wr *bad_send_wr;
struct cm_rej_msg *rej_msg, *rcv_msg;
int ret;
More information about the general
mailing list