diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-04-16 19:37:10 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-05-16 17:32:11 +0300 |
commit | 0015b19070ed2f12b8504c2720b5a349f34e297d (patch) | |
tree | 5c821c1eaff97adf7662b5abf5166a747e159c47 /drivers/staging/media/atomisp/i2c | |
parent | e5c0680fd2c44252868fe4062558925b5506b179 (diff) | |
download | linux-0015b19070ed2f12b8504c2720b5a349f34e297d.tar.xz |
media: atomisp-gc0310: return errors at gc0310_init()
If something wrong gets there, return the error.
Get rid of this warning:
drivers/staging/media/atomisp/i2c/atomisp-gc0310.c: In function 'gc0310_init':
drivers/staging/media/atomisp/i2c/atomisp-gc0310.c:713:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
int ret;
^~~
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/staging/media/atomisp/i2c')
-rw-r--r-- | drivers/staging/media/atomisp/i2c/atomisp-gc0310.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/atomisp/i2c/atomisp-gc0310.c b/drivers/staging/media/atomisp/i2c/atomisp-gc0310.c index 512fa87fa11b..3b38cbccf294 100644 --- a/drivers/staging/media/atomisp/i2c/atomisp-gc0310.c +++ b/drivers/staging/media/atomisp/i2c/atomisp-gc0310.c @@ -727,7 +727,7 @@ static int gc0310_init(struct v4l2_subdev *sd) mutex_unlock(&dev->input_lock); pr_info("%s E\n", __func__); - return 0; + return ret; } static int power_ctrl(struct v4l2_subdev *sd, bool flag) |