From: Niklas Söderlund Date: Mon, 15 Aug 2016 15:06:27 +0000 (-0300) Subject: [media] rcar-vin: reduce indentation in rvin_s_dv_timings() X-Git-Tag: v4.9-rc4~7^2~432 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=325527a6e829bf21c658d9756249baaeba876312;p=platform%2Fkernel%2Flinux-exynos.git [media] rcar-vin: reduce indentation in rvin_s_dv_timings() Align style with the rest of the driver. Signed-off-by: Niklas Söderlund Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/rcar-vin/rcar-v4l2.c b/drivers/media/platform/rcar-vin/rcar-v4l2.c index f26e3cd..72fe6bc 100644 --- a/drivers/media/platform/rcar-vin/rcar-v4l2.c +++ b/drivers/media/platform/rcar-vin/rcar-v4l2.c @@ -504,16 +504,18 @@ static int rvin_s_dv_timings(struct file *file, void *priv_fh, { struct rvin_dev *vin = video_drvdata(file); struct v4l2_subdev *sd = vin_to_source(vin); - int err; - - err = v4l2_subdev_call(sd, video, s_dv_timings, timings); - if (!err) { - vin->source.width = timings->bt.width; - vin->source.height = timings->bt.height; - vin->format.width = timings->bt.width; - vin->format.height = timings->bt.height; - } - return err; + int ret; + + ret = v4l2_subdev_call(sd, video, s_dv_timings, timings); + if (ret) + return ret; + + vin->source.width = timings->bt.width; + vin->source.height = timings->bt.height; + vin->format.width = timings->bt.width; + vin->format.height = timings->bt.height; + + return 0; } static int rvin_g_dv_timings(struct file *file, void *priv_fh,