[media] rcar-vin: reduce indentation in rvin_s_dv_timings()
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Mon, 15 Aug 2016 15:06:27 +0000 (12:06 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 23 Aug 2016 17:46:02 +0000 (14:46 -0300)
Align style with the rest of the driver.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/rcar-vin/rcar-v4l2.c

index f26e3cd10cf3fd236590520baaf7887f743e24b4..72fe6bc7bdce5fa6cab2af5c9b8e9f4e1665d3e7 100644 (file)
@@ -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,