]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: ether: avoid NULL check before free()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 19 Apr 2020 10:11:12 +0000 (12:11 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 28 Apr 2020 11:52:52 +0000 (13:52 +0200)
commit3c425fc0ef4de31d350695c74db7a3d6be0379b6
tree2cb37697929153f104058967550427e4e4f17ffa
parentcff0144e4cd0825dda0ae46aa739f0681839cc3a
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>
drivers/usb/gadget/ether.c