• P
    net: use skb_unref() in napi_consume_skb() · 7608894e
    Paolo Abeni 提交于
    The commit 83ada39bb79d ("net: factor out a helper to decrement the
    skb refcount") provided and used a helper for decrementing skb usage,
    but I missed at least a spot for it.
    
    This change remove some more duplicated code reusing skb_unref() in
    napi_consume_skb(), too. The helper uses an additional, unneeded
    unlikely(!skb) test - napi_consume_skb() already check it a few lines
    above - but the compiler is smart enough to optimize the duplicated
    test out.
    Signed-off-by: NPaolo Abeni <pabeni@redhat.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    7608894e
skbuff.c 124.9 KB