summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2012-12-05 16:49:12 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-01-06 12:20:13 +0100
commit12861dc659c7181e0b52facd97df70c6dd326106 (patch)
tree0c07366120c03c4a1235c3184d5f30b6cbc6d779
parent[media] v4l: vb2: Set data_offset to 0 for single-plane output buffers (diff)
downloadlinux-12861dc659c7181e0b52facd97df70c6dd326106.tar.xz
linux-12861dc659c7181e0b52facd97df70c6dd326106.zip
[media] m5mols: Fix typo in get_fmt callback
The check of return value from __find_format() was inverted by mistake. This patch fixes regression introduced in commit 5565a2ad47 [media] m5mols: Protect driver data with a mutex Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/i2c/m5mols/m5mols_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/m5mols/m5mols_core.c b/drivers/media/i2c/m5mols/m5mols_core.c
index 8131d651de9e..b9b448559409 100644
--- a/drivers/media/i2c/m5mols/m5mols_core.c
+++ b/drivers/media/i2c/m5mols/m5mols_core.c
@@ -556,7 +556,7 @@ static int m5mols_get_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh,
mutex_lock(&info->lock);
format = __find_format(info, fh, fmt->which, info->res_type);
- if (!format)
+ if (format)
fmt->format = *format;
else
ret = -EINVAL;