usb: ether: avoid NULL check before free()
free() checks if its argument is NULL. Do not duplicate this check. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
cff0144e4c
commit
3c425fc0ef
@ -2472,8 +2472,7 @@ static int _usb_eth_send(struct ether_priv *priv, void *packet, int length)
|
|||||||
}
|
}
|
||||||
usb_gadget_handle_interrupts(0);
|
usb_gadget_handle_interrupts(0);
|
||||||
}
|
}
|
||||||
if (rndis_pkt)
|
free(rndis_pkt);
|
||||||
free(rndis_pkt);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
drop:
|
drop:
|
||||||
|
Loading…
Reference in New Issue
Block a user