[openib-general] [PATCH] Remove redundant uninitialized warning
Krishna Kumar2
krkumar2 at in.ibm.com
Mon Jun 19 22:22:19 PDT 2006
This removes a compile warning : "is_ud might be used uninitialized
in this function".
Signed-off-by: Krishna Kumar <krkumar2 at in.ibm.com>
---
diff -ruNp 1/core/uverbs_cmd.c 2/core/uverbs_cmd.c
--- 1/core/uverbs_cmd.c 2006-06-20 10:14:46.000000000 +0530
+++ 2/core/uverbs_cmd.c 2006-06-20 10:23:50.000000000 +0530
@@ -1530,7 +1530,6 @@ ssize_t ib_uverbs_post_send(struct ib_uv
out_put:
put_qp_read(qp);
-out:
while (wr) {
if (is_ud && wr->wr.ud.ah)
put_ah_read(wr->wr.ud.ah);
@@ -1539,6 +1538,7 @@ out:
wr = next;
}
+out:
kfree(user_wr);
return ret ? ret : in_len;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff.
Type: application/octet-stream
Size: 449 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20060620/13282f5b/attachment.obj>
More information about the general
mailing list