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-05-01 11:51:27 +0100 |
commit | e61a3c6ff35357e27589937e5f9f8a2c66664e1c (patch) | |
tree | d2646fa8cd745e49e3d3ba3bbc3ab1d654315fc5 | |
parent | 98cf887edcdc078cad7177dfe7d3ede7a10dc726 (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; |