mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 22:10:24 +00:00
ks8*/ksz8*: Casting (void *) value returned by kmalloc is useless
The semantic patch that makes this change is available in scripts/coccinelle/api/alloc/drop_kmalloc_cast.cocci. Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8524b001a2
commit
7a2da3d45c
@ -1500,8 +1500,7 @@ static int ks_hw_init(struct ks_net *ks)
|
||||
ks->all_mcast = 0;
|
||||
ks->mcast_lst_size = 0;
|
||||
|
||||
ks->frame_head_info = (struct type_frame_head *) \
|
||||
kmalloc(MHEADER_SIZE, GFP_KERNEL);
|
||||
ks->frame_head_info = kmalloc(MHEADER_SIZE, GFP_KERNEL);
|
||||
if (!ks->frame_head_info) {
|
||||
pr_err("Error: Fail to allocate frame memory\n");
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user