Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] em28xx: Fix return value for s_ctrl

On some cases, driver returns 1. This should be OK, but qv4l2 is too
strict about return values.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

+1 -1
+1 -1
drivers/media/video/em28xx/em28xx-video.c
··· 1452 1452 rc = em28xx_audio_analog_set(dev); 1453 1453 } 1454 1454 } 1455 - return rc; 1455 + return (rc < 0) ? rc : 0; 1456 1456 } 1457 1457 1458 1458 static int vidioc_g_tuner(struct file *file, void *priv,