staging:vt6655: remove checks around dev_kfree_skb
dev_kfree_skb checks for NULL pointer itself, Thus no need of explicit NULL check. Signed-off-by: Maninder Singh <maninder1.s@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
aeb7fa7b4f
commit
4d4d138a3e
@ -758,9 +758,7 @@ static void device_free_td0_ring(struct vnt_private *pDevice)
|
|||||||
dma_unmap_single(&pDevice->pcid->dev, pTDInfo->skb_dma,
|
dma_unmap_single(&pDevice->pcid->dev, pTDInfo->skb_dma,
|
||||||
pTDInfo->skb->len, DMA_TO_DEVICE);
|
pTDInfo->skb->len, DMA_TO_DEVICE);
|
||||||
|
|
||||||
if (pTDInfo->skb)
|
|
||||||
dev_kfree_skb(pTDInfo->skb);
|
dev_kfree_skb(pTDInfo->skb);
|
||||||
|
|
||||||
kfree(pDesc->pTDInfo);
|
kfree(pDesc->pTDInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -777,9 +775,7 @@ static void device_free_td1_ring(struct vnt_private *pDevice)
|
|||||||
dma_unmap_single(&pDevice->pcid->dev, pTDInfo->skb_dma,
|
dma_unmap_single(&pDevice->pcid->dev, pTDInfo->skb_dma,
|
||||||
pTDInfo->skb->len, DMA_TO_DEVICE);
|
pTDInfo->skb->len, DMA_TO_DEVICE);
|
||||||
|
|
||||||
if (pTDInfo->skb)
|
|
||||||
dev_kfree_skb(pTDInfo->skb);
|
dev_kfree_skb(pTDInfo->skb);
|
||||||
|
|
||||||
kfree(pDesc->pTDInfo);
|
kfree(pDesc->pTDInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user