ethernet: Delete unnecessary checks before the macro call “dev_kfree_skb”
The dev_kfree_skb() function performs also input parameter validation. Thus the test around the shown calls is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: David S. Miller <davem@davemloft.net>
此提交包含在:
@@ -697,16 +697,14 @@ static void ni65_free_buffer(struct priv *p)
|
||||
for(i=0;i<TMDNUM;i++) {
|
||||
kfree(p->tmdbounce[i]);
|
||||
#ifdef XMT_VIA_SKB
|
||||
if(p->tmd_skb[i])
|
||||
dev_kfree_skb(p->tmd_skb[i]);
|
||||
dev_kfree_skb(p->tmd_skb[i]);
|
||||
#endif
|
||||
}
|
||||
|
||||
for(i=0;i<RMDNUM;i++)
|
||||
{
|
||||
#ifdef RCV_VIA_SKB
|
||||
if(p->recv_skb[i])
|
||||
dev_kfree_skb(p->recv_skb[i]);
|
||||
dev_kfree_skb(p->recv_skb[i]);
|
||||
#else
|
||||
kfree(p->recvbounce[i]);
|
||||
#endif
|
||||
|
新增問題並參考
封鎖使用者