diff options
author | Rui Miguel Silva <rui.silva@linaro.org> | 2018-02-20 23:44:54 +0000 |
---|---|---|
committer | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2019-03-27 15:11:24 +0000 |
commit | 716f8fd2c15698959eb98dd48505e6d53ce0b829 (patch) | |
tree | dc82c9a72245d11ebe8ab5f8a53bda183585e7c3 | |
parent | 32f54a2c2e70e15bd18ce406df26e8b2427b0746 (diff) |
media: ov2680: do not set format on try
Get out of set format without really setting if the which parameter is only to
try and not set format active.
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
-rw-r--r-- | drivers/media/i2c/ov2680.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/i2c/ov2680.c b/drivers/media/i2c/ov2680.c index a33c32defaf4..8647ff0af2e4 100644 --- a/drivers/media/i2c/ov2680.c +++ b/drivers/media/i2c/ov2680.c @@ -768,6 +768,7 @@ static int ov2680_set_fmt(struct v4l2_subdev *sd, fmt = v4l2_subdev_get_try_format(sd, cfg, 0); *fmt = format->format; + goto unlock; } fmt->width = mode->width; |