]> git.baikalelectronics.ru Git - kernel.git/commit
media: tvp5150: fix switch exit in set control handler
authorMarco Felsch <m.felsch@pengutronix.de>
Thu, 28 Jun 2018 16:20:34 +0000 (12:20 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 17 Sep 2018 17:20:57 +0000 (13:20 -0400)
commit534a2a81ca180e3d7af33d76e8e92d9b5ce2a76b
tree9dc8d0cbe2d684dd426aa21fd751ca4899fcbed7
parentb522abac96e09e80c7a3ea4aa907a35c09627b73
media: tvp5150: fix switch exit in set control handler

The function only consists of a single switch case block without a
default case. Unsupported control requests are indicated by the -EINVAL
return code trough the last return statement at the end of the function. So
exiting just the switch case block returns the -EINVAL error code but the
hue control is supported and a zero should be returned instead.

Replace the break by a 'return 0' to fix this behaviour.

Fixes: a0c67d102da3 ("[media] v4l: tvp5150: Add missing break in set
control handler")

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/tvp5150.c