• Alex Elder's avatar
    net: ipa: don't have gsi_channel_update() return a value · 019e37ea
    Alex Elder authored
    If it finds no completed transactions, gsi_channel_trans_complete()
    calls gsi_channel_update() to check hardware.  If new transactions
    have completed, gsi_channel_update() records that, then calls
    gsi_channel_trans_complete() to return the first of those found.
    This recursion won't go any further, but can be avoided if we
    have gsi_channel_update() only be responsible for updating state
    after accessing hardware.
    
    Change gsi_channel_update() so it simply checks for and handles
    new completions, without returning a value.  If it needs to call
    that function, have gsi_channel_trans_complete() determine whether
    there are new transactions available after the update.
    Signed-off-by: default avatarAlex Elder <elder@linaro.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    019e37ea
gsi_trans.c 23.6 KB