aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mthca/mthca_provider.c
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2005-10-25 15:13:54 -0700
committerRoland Dreier <rolandd@cisco.com>2005-10-25 15:13:54 -0700
commit7cc656efb560cda66b5ed48444cad7556ea4fe99 (patch)
treebfc4d1e256e755623c9782b1a0883fc337d88e6e /drivers/infiniband/hw/mthca/mthca_provider.c
parent547e3090738b04be650770b64265835dbb6ddf92 (diff)
downloadkernel_samsung_smdk4412-7cc656efb560cda66b5ed48444cad7556ea4fe99.zip
kernel_samsung_smdk4412-7cc656efb560cda66b5ed48444cad7556ea4fe99.tar.gz
kernel_samsung_smdk4412-7cc656efb560cda66b5ed48444cad7556ea4fe99.tar.bz2
[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 <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_provider.c')
0 files changed, 0 insertions, 0 deletions