mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-04 12:54:37 +08:00
vxge: remove unnecessary cast in kfree()
Remove unnecessary cast in the argument to kfree. Signed-off-by: Xu Wang <vulab@iscas.ac.cn> Link: https://lore.kernel.org/r/20201023085533.4792-1-vulab@iscas.ac.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
3cb12d27ff
commit
b6bf4776d9
@ -1121,7 +1121,7 @@ static void __vxge_hw_blockpool_destroy(struct __vxge_hw_blockpool *blockpool)
|
||||
|
||||
list_for_each_safe(p, n, &blockpool->free_entry_list) {
|
||||
list_del(&((struct __vxge_hw_blockpool_entry *)p)->item);
|
||||
kfree((void *)p);
|
||||
kfree(p);
|
||||
}
|
||||
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user