V4L/DVB (8757): v4l-dvb: fix a bunch of sparse warnings
Fixed a lot of sparse warnings: mostly warnings about shadowed variables and signed/unsigned mismatches. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
980d4f1734
commit
c6eb8eafdb
@@ -1635,15 +1635,15 @@ int pwc_ioctl(struct pwc_device *pdev, unsigned int cmd, void *arg)
|
||||
|
||||
case VIDIOCPWCGVIDCMD:
|
||||
{
|
||||
ARG_DEF(struct pwc_video_command, cmd);
|
||||
ARG_DEF(struct pwc_video_command, vcmd);
|
||||
|
||||
ARGR(cmd).type = pdev->type;
|
||||
ARGR(cmd).release = pdev->release;
|
||||
ARGR(cmd).command_len = pdev->cmd_len;
|
||||
memcpy(&ARGR(cmd).command_buf, pdev->cmd_buf, pdev->cmd_len);
|
||||
ARGR(cmd).bandlength = pdev->vbandlength;
|
||||
ARGR(cmd).frame_size = pdev->frame_size;
|
||||
ARG_OUT(cmd)
|
||||
ARGR(vcmd).type = pdev->type;
|
||||
ARGR(vcmd).release = pdev->release;
|
||||
ARGR(vcmd).command_len = pdev->cmd_len;
|
||||
memcpy(&ARGR(vcmd).command_buf, pdev->cmd_buf, pdev->cmd_len);
|
||||
ARGR(vcmd).bandlength = pdev->vbandlength;
|
||||
ARGR(vcmd).frame_size = pdev->frame_size;
|
||||
ARG_OUT(vcmd)
|
||||
break;
|
||||
}
|
||||
/*
|
||||
|
Reference in New Issue
Block a user