From: Niklas Söderlund Date: Sat, 18 May 2019 00:46:54 +0000 (-0400) Subject: media: vimc: Remove unneeded return statement in vimc_sen_s_stream() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fe97d64d72586827f422a5aa49a4b7fb5cbb6932;p=linux.git media: vimc: Remove unneeded return statement in vimc_sen_s_stream() The other subdevice implementations in vimc (debayer and scaler) which share their code structure with the sensor do not have an explicit return statement at the end of the s_stream(0) code path. Align the sensor subdevice by dropping the return statement. Signed-off-by: Niklas Söderlund Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/vimc/vimc-sensor.c b/drivers/media/platform/vimc/vimc-sensor.c index 081e54204c9f4..baca9ca67ce0a 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) vfree(vsen->frame); vsen->frame = NULL; - return 0; } return 0;