mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-14 12:37:32 +00:00
staging: vt6655: Remove unnecessary cast for argument of kfree
This patch removes all occurrences of unnecessary cast on the argument to kfree, all over in rtl8712. There is no need of the cast on the argument to kfree. Greped to find occurrences. Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
14cd1df4ba
commit
61d566a5a3
1 changed files with 4 additions and 4 deletions
|
@ -1204,7 +1204,7 @@ static void device_free_rd0_ring(struct vnt_private *pDevice)
|
|||
|
||||
dev_kfree_skb(pRDInfo->skb);
|
||||
|
||||
kfree((void *)pDesc->pRDInfo);
|
||||
kfree(pDesc->pRDInfo);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1221,7 +1221,7 @@ static void device_free_rd1_ring(struct vnt_private *pDevice)
|
|||
|
||||
dev_kfree_skb(pRDInfo->skb);
|
||||
|
||||
kfree((void *)pDesc->pRDInfo);
|
||||
kfree(pDesc->pRDInfo);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1305,7 +1305,7 @@ static void device_free_td0_ring(struct vnt_private *pDevice)
|
|||
if (pTDInfo->skb)
|
||||
dev_kfree_skb(pTDInfo->skb);
|
||||
|
||||
kfree((void *)pDesc->pTDInfo);
|
||||
kfree(pDesc->pTDInfo);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1324,7 +1324,7 @@ static void device_free_td1_ring(struct vnt_private *pDevice)
|
|||
if (pTDInfo->skb)
|
||||
dev_kfree_skb(pTDInfo->skb);
|
||||
|
||||
kfree((void *)pDesc->pTDInfo);
|
||||
kfree(pDesc->pTDInfo);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue