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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Oct 2019 06:26:05 +0000 (08:26 +0200)
commitec2a3681b30c1b3fa3afed6057dccb958d51434b
treead66fc3fce2cea68c6f04af41f49a7f1c8263d4d
parentba6860700d1fac40debb94f1aa40d8b2dbaaaf21
media: tvp5150: fix switch exit in set control handler

commit 2d29bcc8c237874795175b2930fa9a45a115175a upstream.

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: d183e4efcae8 ("[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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/i2c/tvp5150.c