mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-10-02 19:22:00 +02:00
usb: avoid NULL check before free
The free() function checks if the argument is NULL. Do not duplicate this check. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
d16d37bcd4
commit
cff0144e4c
@ -1413,12 +1413,9 @@ static struct int_queue *_ehci_create_int_queue(struct usb_device *dev,
|
|||||||
debug("Exit create_int_queue\n");
|
debug("Exit create_int_queue\n");
|
||||||
return result;
|
return result;
|
||||||
fail3:
|
fail3:
|
||||||
if (result->tds)
|
|
||||||
free(result->tds);
|
free(result->tds);
|
||||||
fail2:
|
fail2:
|
||||||
if (result->first)
|
|
||||||
free(result->first);
|
free(result->first);
|
||||||
if (result)
|
|
||||||
free(result);
|
free(result);
|
||||||
fail1:
|
fail1:
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user