summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2017-07-19 16:51:01 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-07-19 16:51:01 -0400
commitcc0ff41b0f1e2ba7785333e86b12389be211c9a3 (patch)
tree8e6d9085ce693e2716ed92a3702e46ea1089bdcf
parent8d935787d38f1c2bf689f64ecfe4581e05e5fe55 (diff)
media: adv748x: get rid of unused var
drivers/media/i2c/adv748x/adv748x-csi2.c: In function 'adv748x_csi2_init_controls': drivers/media/i2c/adv748x/adv748x-csi2.c:251:20: warning: variable 'ctrl' set but not used [-Wunused-but-set-variable] struct v4l2_ctrl *ctrl; ^~~~ Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r--drivers/media/i2c/adv748x/adv748x-csi2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/i2c/adv748x/adv748x-csi2.c b/drivers/media/i2c/adv748x/adv748x-csi2.c
index b4fee7f52d6a..979825d4a419 100644
--- a/drivers/media/i2c/adv748x/adv748x-csi2.c
+++ b/drivers/media/i2c/adv748x/adv748x-csi2.c
@@ -248,12 +248,11 @@ static const struct v4l2_ctrl_ops adv748x_csi2_ctrl_ops = {
static int adv748x_csi2_init_controls(struct adv748x_csi2 *tx)
{
- struct v4l2_ctrl *ctrl;
v4l2_ctrl_handler_init(&tx->ctrl_hdl, 1);
- ctrl = v4l2_ctrl_new_std(&tx->ctrl_hdl, &adv748x_csi2_ctrl_ops,
- V4L2_CID_PIXEL_RATE, 1, INT_MAX, 1, 1);
+ v4l2_ctrl_new_std(&tx->ctrl_hdl, &adv748x_csi2_ctrl_ops,
+ V4L2_CID_PIXEL_RATE, 1, INT_MAX, 1, 1);
tx->sd.ctrl_handler = &tx->ctrl_hdl;
if (tx->ctrl_hdl.error) {