[NET]: Remove more unneeded typecasts on *malloc()
This removes more unneeded casts on the return value for kmalloc(), sock_kmalloc(), and vmalloc(). Signed-off-by: Kris Katterjohn <kjak@users.sourceforge.net> Acked-by: James Morris <jmorris@namei.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
ae0f7d5f83
commit
8b3a70058b
@ -944,7 +944,7 @@ static int do_replace(void __user *user, unsigned int len)
|
||||
if (countersize)
|
||||
memset(newinfo->counters, 0, countersize);
|
||||
|
||||
newinfo->entries = (char *)vmalloc(tmp.entries_size);
|
||||
newinfo->entries = vmalloc(tmp.entries_size);
|
||||
if (!newinfo->entries) {
|
||||
ret = -ENOMEM;
|
||||
goto free_newinfo;
|
||||
@ -1146,7 +1146,7 @@ int ebt_register_table(struct ebt_table *table)
|
||||
if (!newinfo)
|
||||
return -ENOMEM;
|
||||
|
||||
newinfo->entries = (char *)vmalloc(table->table->entries_size);
|
||||
newinfo->entries = vmalloc(table->table->entries_size);
|
||||
if (!(newinfo->entries))
|
||||
goto free_newinfo;
|
||||
|
||||
|
Reference in New Issue
Block a user