[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CF9C39F99A89134C9CF9C4CCB68B8DDF25CCC10249@orsmsx501.amr.corp.intel.com>
Date: Thu, 17 Mar 2011 16:35:39 -0700
From: "Hefty, Sean" <sean.hefty@...el.com>
To: Stephen Rothwell <sfr@...b.auug.org.au>,
Roland Dreier <roland@...nel.org>
CC: "linux-next@...r.kernel.org" <linux-next@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>,
Hal Rosenstock <hal.rosenstock@...il.com>,
Eric Dumazet <eric.dumazet@...il.com>,
Tejun Heo <tj@...nel.org>, Changli Gao <xiaosuo@...il.com>,
"linux-rdma@...r.kernel.org" <linux-rdma@...r.kernel.org>
Subject: [PATCH] rdma/addr: Initialize ret to fix build warning
Commit b23dd4fe42b455af5c6e20966b7d6959fa8352ea (ipv4: Make output
route lookup return rtable directly) resulted in leaving
ret uninitialized, where it may later be returned.
Signed-off-by: Sean Hefty <sean.hefty@...el.com>
---
I didn't actually test this, but it looks correct.
drivers/infiniband/core/addr.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c
index e0ef5fd..4ffc224 100644
--- a/drivers/infiniband/core/addr.c
+++ b/drivers/infiniband/core/addr.c
@@ -204,7 +204,7 @@ static int addr4_resolve(struct sockaddr_in *src_in,
/* If the device does ARP internally, return 'done' */
if (rt->dst.dev->flags & IFF_NOARP) {
- rdma_copy_addr(addr, rt->dst.dev, NULL);
+ ret = rdma_copy_addr(addr, rt->dst.dev, NULL);
goto put;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists