diff options
author | Rui Miguel Silva <rui.silva@linaro.org> | 2018-02-20 23:44:54 +0000 |
---|---|---|
committer | Rui Miguel Silva <rui.silva@linaro.org> | 2018-08-12 16:49:37 +0100 |
commit | 2fde68cccd3ef331e8dac18c7d82bdd2bfb80df2 (patch) | |
tree | d596b8bee2d7820ee4329d0e0f74a0acc55875b8 | |
parent | fd1a1e4c5d1f04c6c69b9a361cdd6a76468cbbb0 (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; |