Linux-Media Archive on
 help / color / Atom feed
* [PATCH] vimc: Remove unneeded return statement in vimc_sen_s_stream()
@ 2019-05-18  0:46 Niklas Söderlund
  0 siblings, 0 replies; only message in thread
From: Niklas Söderlund @ 2019-05-18  0:46 UTC (permalink / raw)
  To: Helen Koike, linux-media; +Cc: Niklas Söderlund

The other subdevice implementations in vimc (debayer and scaler) which
share there code structure with the sensor does not have an explicit
return statement at the end of the s_stream(0) code path. Align the
sensor subdevices by dropping the return statement.

Signed-off-by: Niklas Söderlund <>
 drivers/media/platform/vimc/vimc-sensor.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/media/platform/vimc/vimc-sensor.c b/drivers/media/platform/vimc/vimc-sensor.c
index 081e54204c9f4ece..baca9ca67ce0af0b 100644
--- a/drivers/media/platform/vimc/vimc-sensor.c
+++ b/drivers/media/platform/vimc/vimc-sensor.c
@@ -221,7 +221,6 @@ static int vimc_sen_s_stream(struct v4l2_subdev *sd, int enable)
 		vsen->frame = NULL;
-		return 0;
 	return 0;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-18  0:46 [PATCH] vimc: Remove unneeded return statement in vimc_sen_s_stream() Niklas Söderlund

Linux-Media Archive on

Archives are clonable:
	git clone --mirror linux-media/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-media linux-media/ \
	public-inbox-index linux-media

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox