• Ivo van Doorn's avatar
    rt2x00: Remove duplicate deinitialization · 61243d8e
    Ivo van Doorn authored
    When rt2x00queue_alloc_rxskbs() fails rt2x00queue_unitialize()
    will be called which will free all rxskb. So we don't need
    to do this in the rt2x00queue_alloc_rxskb() function as well.
    
    rt2x00queue_free_skb() unmaps the DMA but doesn't clear the
    allocation flag. Since the code is copied from rt2x00queue_unmap_skb()
    anyway (and that function does clear the flag) we might as well
    use that function directly.
    Signed-off-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    61243d8e
rt2x00queue.c 15.6 KB