mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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
|
@ -1710,10 +1710,8 @@ static int rr_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
error = -EFAULT;
|
||||
}
|
||||
wf_out:
|
||||
if (oldimage)
|
||||
kfree(oldimage);
|
||||
if (image)
|
||||
kfree(image);
|
||||
kfree(oldimage);
|
||||
kfree(image);
|
||||
return error;
|
||||
|
||||
case SIOCRRID:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue