mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
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>
This commit is contained in:
parent
8d935787d3
commit
cc0ff41b0f
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user