samples: intel_s1000_crb/audio: fix return for non-void function

The usb_transport_init() does not return a value when it fails to
initialize the USB device. So add a return value there.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2019-12-23 12:33:30 -08:00 committed by Johan Hedberg
commit e78704251b

View file

@ -101,7 +101,7 @@ int usb_transport_init(usb_transport_receive_callback_t callback)
ret = usb_enable(NULL); ret = usb_enable(NULL);
if (ret != 0) { if (ret != 0) {
LOG_ERR("Failed to enable USB"); LOG_ERR("Failed to enable USB");
return; return -EIO;
} }
/* initialize USB interface and HID class */ /* initialize USB interface and HID class */