summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/ov2685.c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2018-01-19 13:49:02 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-02-23 10:45:48 +0300
commitc723001f3b5951bd017b2a24360ad188f488e994 (patch)
tree2b847573507f3c14ae5a2ba33ee45b59592681a6 /drivers/media/i2c/ov2685.c
parente3861d9118c815c4cf1ef2f7365005205c07c65a (diff)
downloadlinux-c723001f3b5951bd017b2a24360ad188f488e994.tar.xz
media: ov2685: Assign ret in default case in s_ctrl callback
Assign ret in the default case for s_ctrl callback. This can't happen but still may result in compiler warnings. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/i2c/ov2685.c')
-rw-r--r--drivers/media/i2c/ov2685.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/i2c/ov2685.c b/drivers/media/i2c/ov2685.c
index df4abecd8d74..904ac305d499 100644
--- a/drivers/media/i2c/ov2685.c
+++ b/drivers/media/i2c/ov2685.c
@@ -574,6 +574,7 @@ static int ov2685_set_ctrl(struct v4l2_ctrl *ctrl)
default:
dev_warn(&client->dev, "%s Unhandled id:0x%x, val:0x%x\n",
__func__, ctrl->id, ctrl->val);
+ ret = -EINVAL;
break;
};