diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-26 00:49:37 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-26 00:49:37 (GMT) |
commit | ed72b9c6e0ec4e66dd16b7ca212845e1eb985d65 (patch) | |
tree | 731d4865ab1b2c3acbc8077b6a03f33b87017a53 /net | |
parent | be5a3c62c805878d67036b4683f09118cab4c9fd (diff) | |
download | linux-fsl-qoriq-ed72b9c6e0ec4e66dd16b7ca212845e1eb985d65.tar.xz |
sunrpc: fix warning in net/sunrpc/xprtrdma/svc_rdma_transport.c
this warning:
net/sunrpc/xprtrdma/svc_rdma_transport.c: In function ‘svc_rdma_accept’:
net/sunrpc/xprtrdma/svc_rdma_transport.c:830: warning: ‘dma_mr_acc’ may be used uninitialized in this function
triggers because GCC does not recognize the (correct) flow connection
between need_dma_mr and dma_mr_acc.
Annotate it.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/xprtrdma/svc_rdma_transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/svc_rdma_transport.c b/net/sunrpc/xprtrdma/svc_rdma_transport.c index f8500f0..8872914 100644 --- a/net/sunrpc/xprtrdma/svc_rdma_transport.c +++ b/net/sunrpc/xprtrdma/svc_rdma_transport.c @@ -827,7 +827,7 @@ static struct svc_xprt *svc_rdma_accept(struct svc_xprt *xprt) struct rdma_conn_param conn_param; struct ib_qp_init_attr qp_attr; struct ib_device_attr devattr; - int dma_mr_acc; + int uninitialized_var(dma_mr_acc); int need_dma_mr; int ret; int i; |