]> git.sur5r.net Git - u-boot/commit
usb: Check usb_new_device for failure
authorPaul Kocialkowski <contact@paulk.fr>
Sat, 4 Apr 2015 13:12:28 +0000 (15:12 +0200)
committerMarek Vasut <marex@denx.de>
Tue, 14 Apr 2015 03:47:48 +0000 (05:47 +0200)
commit8879be88576024a48ae135ea0b3835727d8c9a3a
tree67035fccdae5082272c58e4a4a26d1e359344445
parent5a80b3449ba7a3ef0230a79b8e26252b885f7616
usb: Check usb_new_device for failure

This checks that a new USB device is correctly initialized and frees it if not.
In addition, this doesn't report that USB was started when no device was found.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
common/usb.c