mirror of
https://github.com/linux-usb-gadgets/libusbgx.git
synced 2025-07-13 07:19:47 +03:00
Merge pull request #62 from linux-usb-gadgets/uvc-fix
uvc: fix return check on scandir
This commit is contained in:
commit
ed1fb6d12c
1 changed files with 2 additions and 2 deletions
|
@ -174,8 +174,8 @@ int init_frames(struct usbg_f_uvc *uvc, int j)
|
|||
return ret;
|
||||
}
|
||||
|
||||
nmb = scandir(fpath, &dent, frame_select, frame_sort);
|
||||
if (nmb < 0) {
|
||||
ret = scandir(fpath, &dent, frame_select, frame_sort);
|
||||
if (ret < 0) {
|
||||
ret = usbg_translate_error(errno);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue