[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
@@ -1237,7 +1237,7 @@ static int packet_mc_add(struct sock *sk, struct packet_mreq_max *mreq)
|
||||
goto done;
|
||||
|
||||
err = -ENOBUFS;
|
||||
i = (struct packet_mclist *)kmalloc(sizeof(*i), GFP_KERNEL);
|
||||
i = kmalloc(sizeof(*i), GFP_KERNEL);
|
||||
if (i == NULL)
|
||||
goto done;
|
||||
|
||||
|
Reference in New Issue
Block a user