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:
parent
2a2351b58f
commit
e78704251b
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue