From: Prarit Bhargava Date: Wed, 19 Feb 2014 20:05:16 +0000 (-0500) Subject: RDMA/ocrdma: Fix compiler warning X-Git-Tag: v3.15-rc1~103^2^8~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc1b04ab34a1485339571242cb0fbad823835685;p=pandora-kernel.git RDMA/ocrdma: Fix compiler warning drivers/infiniband/hw/ocrdma/ocrdma_verbs.c: In function ‘_ocrdma_modify_qp’: drivers/infiniband/hw/ocrdma/ocrdma_verbs.c:1299:31: error: ‘old_qps’ may be used uninitialized in this function [-Werror=maybe-uninitialized] status = ocrdma_mbx_modify_qp(dev, qp, attr, attr_mask, old_qps); ocrdma_mbx_modify_qp() (and subsequent calls) doesn't appear to use old_qps so it doesn't need to be passed on. Removing the variable results in the warning going away. Signed-off-by: Prarit Bhargava Acked-by: Devesh Sharma (Devesh.sharma@emulex.com) Signed-off-by: Roland Dreier --- Reading git-diff-tree failed