diff options
author | Niklas Söderlund <[email protected]> | 2016-08-15 12:06:27 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2016-08-23 14:46:02 -0300 |
commit | 325527a6e829bf21c658d9756249baaeba876312 (patch) | |
tree | 67c69a1670971119f9f23ba7814242b88bf6dac0 | |
parent | 7eb95877a09b1ccfa35fb4bb5fe4c3e3ea7ed43e (diff) |
[media] rcar-vin: reduce indentation in rvin_s_dv_timings()
Align style with the rest of the driver.
Signed-off-by: Niklas Söderlund <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
-rw-r--r-- | drivers/media/platform/rcar-vin/rcar-v4l2.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/drivers/media/platform/rcar-vin/rcar-v4l2.c b/drivers/media/platform/rcar-vin/rcar-v4l2.c index f26e3cd10cf3..72fe6bc7bdce 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, |