]> err.no Git - linux-2.6/commit
IB/mthca: Make functions that never fail return void
authorRoland Dreier <rolandd@cisco.com>
Wed, 1 Feb 2006 04:45:51 +0000 (20:45 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 20 Mar 2006 18:08:07 +0000 (10:08 -0800)
commitd9b98b0f11ee7dd39429001ba289f095b9d66917
treec473a7b348640cb80c4584ef5ea8dd055efed577
parent7705a8792b0fc82fd7d4dd923724606bbfd9fb20
IB/mthca: Make functions that never fail return void

The function mthca_free_err_wqe() can never fail, so get rid of its
return value.  That means handle_error_cqe() doesn't have to check
what mthca_free_err_wqe() returns, which means it can't fail either
and doesn't have to return anything either.  All this results in
simpler source code and a slight object code improvement:

add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-10 (-10)
function                                     old     new   delta
mthca_free_err_wqe                            83      81      -2
mthca_poll_cq                               1758    1750      -8

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_cq.c
drivers/infiniband/hw/mthca/mthca_dev.h
drivers/infiniband/hw/mthca/mthca_qp.c