usb: gadget: error out if g_dnl registration fails
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Tue, 4 Jun 2019 19:01:55 +0000 (21:01 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 14 Jun 2019 10:39:50 +0000 (12:39 +0200)
commit25ee924649f94b42fba8ef615b5eb39db19044cd
treed2834e951d31eaaf25f3fcbd2673b46409e4b7cf
parent634931fea542fc59cf7537b6c2c163942a6ccd15
usb: gadget: error out if g_dnl registration fails

If g_dnl_register fails return an error rather then stubornly
continuing onwards.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
cmd/usb_gadget_sdp.c
common/spl/spl_sdp.c