• Roland Dreier's avatar
    IB/mthca: Make functions that never fail return void · d9b98b0f
    Roland Dreier authored
    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: default avatarRoland Dreier <rolandd@cisco.com>
    d9b98b0f
mthca_dev.h 17 KB