[media] uvcvideo: Fix a "ignoring return value of ‘__clear_user’" warning
Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
3e366149b8
commit
57fb4a4831
|
@ -1097,7 +1097,8 @@ static int uvc_v4l2_put_xu_mapping(const struct uvc_xu_control_mapping *kp,
|
|||
__put_user(kp->menu_count, &up->menu_count))
|
||||
return -EFAULT;
|
||||
|
||||
__clear_user(up->reserved, sizeof(up->reserved));
|
||||
if (__clear_user(up->reserved, sizeof(up->reserved)))
|
||||
return -EFAULT;
|
||||
|
||||
if (kp->menu_count == 0)
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue