From: Paul Bolle Date: Wed, 24 Jul 2013 22:06:07 +0000 (-0700) Subject: RDMA/cma: Fix gcc warning X-Git-Tag: v3.11-rc4~9^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fb488d740582314534c278b5d1e3a1888b850b9;p=pandora-kernel.git RDMA/cma: Fix gcc warning Building cma.o triggers this gcc warning: drivers/infiniband/core/cma.c: In function ‘rdma_resolve_addr’: drivers/infiniband/core/cma.c:465:23: warning: ‘port’ may be used uninitialized in this function [-Wmaybe-uninitialized] drivers/infiniband/core/cma.c:426:5: note: ‘port’ was declared here This is a false positive, as "port" will always be initialized if we're at "found". But if we assign to "id_priv->id.port_num" directly, we can drop "port". That will, obviously, silence gcc. Signed-off-by: Paul Bolle Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier --- Reading git-diff-tree failed