]> git.baikalelectronics.ru Git - uboot.git/commit
usb: avoid NULL check before free
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 19 Apr 2020 10:02:28 +0000 (12:02 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 28 Apr 2020 11:52:52 +0000 (13:52 +0200)
commit644dd08c7e1e038ca57e4209ae0992fcdaab5c3b
treef77d4031d941ae79497c3319240fbfe11a97298b
parente48c71e1c3fd91c0aedda8ad9bccd871c3526458
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>
drivers/usb/host/ehci-hcd.c