Merge tag 'v3.8-rc3' into v4l_for_linus
[~shefty/rdma-dev.git] / drivers / media / i2c / m5mols / m5mols_core.c
index 8a8d42f..d4e7567 100644 (file)
@@ -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;