• L
    mwl8k: dma header manipulations can't fail · 76266b2a
    Lennert Buytenhek 提交于
    Adding and removing the DMA header that the mwl8k hardware requires
    on tx and provides on rx can never fail, since we are guaranteed to
    have enough headroom on the tx path to expand the packet, and we only
    ever shrink the packet on the rx path.  (And on both paths we are
    guaranteed to be the only user of the skb we are handling.)
    
    This allows removing all of the skb clone handling in the tx and tx
    reclaim paths, and eliminates error checks in both the tx and rx
    paths, simplifying the code a bit more.
    Signed-off-by: NLennert Buytenhek <buytenh@marvell.com>
    Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
    76266b2a
mwl8k.c 84.6 KB