drivers/net: Remove pointless checks for NULL prior to calling kfree()
This commit is contained in:
parent
7380a78a97
commit
b4558ea93d
32 changed files with 90 additions and 174 deletions
|
@ -705,8 +705,7 @@ static void free_shared_mem(struct s2io_nic *nic)
|
|||
}
|
||||
kfree(mac_control->rings[i].ba[j]);
|
||||
}
|
||||
if (mac_control->rings[i].ba)
|
||||
kfree(mac_control->rings[i].ba);
|
||||
kfree(mac_control->rings[i].ba);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue