diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-25 19:49:37 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 19:49:37 -0500 |
commit | ed72b9c6e0ec4e66dd16b7ca212845e1eb985d65 (patch) | |
tree | 731d4865ab1b2c3acbc8077b6a03f33b87017a53 /net/sunrpc | |
parent | be5a3c62c805878d67036b4683f09118cab4c9fd (diff) |
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/sunrpc')
-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 f8500f018f8a..8872914aa4cf 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) | |||
827 | struct rdma_conn_param conn_param; | 827 | struct rdma_conn_param conn_param; |
828 | struct ib_qp_init_attr qp_attr; | 828 | struct ib_qp_init_attr qp_attr; |
829 | struct ib_device_attr devattr; | 829 | struct ib_device_attr devattr; |
830 | int dma_mr_acc; | 830 | int uninitialized_var(dma_mr_acc); |
831 | int need_dma_mr; | 831 | int need_dma_mr; |
832 | int ret; | 832 | int ret; |
833 | int i; | 833 | int i; |