media: vimc: Remove unneeded return statement in vimc_sen_s_stream()
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Sat, 18 May 2019 00:46:54 +0000 (20:46 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 28 May 2019 17:11:51 +0000 (13:11 -0400)
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 <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vimc/vimc-sensor.c

index 081e542..baca9ca 100644 (file)
@@ -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;