From: Bart Van Assche Date: Thu, 13 Jan 2011 19:02:25 +0000 (+0000) Subject: IB/srp: Test only once whether iu allocation succeeded X-Git-Tag: v2.6.38-rc1~13^2^5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=695b83495e2fba9d3a883193cfc9d5eefa96a911;p=pandora-kernel.git IB/srp: Test only once whether iu allocation succeeded Merge the two tests in srp_queuecommand() of whether information unit allocation succeeded into one. An intended side effect of this change is that we fix the warning: drivers/infiniband/ulp/srp/ib_srp.c: In function 'srp_queuecommand': drivers/infiniband/ulp/srp/ib_srp.c:1116: warning: 'req' may be used uninitialized in this function (seen with CONFIG_CC_OPTIMIZE_FOR_SIZE=y at least with gcc 4.4.4) Signed-off-by: Bart Van Assche Acked-by: David Dillow Signed-off-by: Roland Dreier --- Reading git-diff-tree failed