From: Roland Dreier Date: Tue, 25 Oct 2005 22:13:54 +0000 (-0700) Subject: [IB] simplify mad_rmpp.c:alloc_response_msg() X-Git-Tag: v2.6.15-rc1~731^2~21^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cc656efb560cda66b5ed48444cad7556ea4fe99;p=pandora-kernel.git [IB] simplify mad_rmpp.c:alloc_response_msg() Change alloc_response_msg() in mad_rmpp.c to return the struct it allocates directly (or an error code a la ERR_PTR), rather than returning a status and passing the struct back in a pointer param. This simplifies the code and gets rid of warnings like drivers/infiniband/core/mad_rmpp.c: In function nack_recv: drivers/infiniband/core/mad_rmpp.c:192: warning: msg may be used uninitialized in this function with newer versions of gcc. Signed-off-by: Roland Dreier --- Reading git-diff-tree failed