mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 07:36:56 +07:00
[media] pvrusb2: Variables set but not used
Tested by compilation only. Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
adb609666b
commit
503d194956
@ -226,13 +226,11 @@ static int pvr2_enum_input(struct file *file, void *priv, struct v4l2_input *vi)
|
|||||||
struct v4l2_input tmp;
|
struct v4l2_input tmp;
|
||||||
unsigned int cnt;
|
unsigned int cnt;
|
||||||
int val;
|
int val;
|
||||||
int ret;
|
|
||||||
|
|
||||||
cptr = pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_INPUT);
|
cptr = pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_INPUT);
|
||||||
|
|
||||||
memset(&tmp, 0, sizeof(tmp));
|
memset(&tmp, 0, sizeof(tmp));
|
||||||
tmp.index = vi->index;
|
tmp.index = vi->index;
|
||||||
ret = 0;
|
|
||||||
if (vi->index >= fh->input_cnt)
|
if (vi->index >= fh->input_cnt)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
val = fh->input_map[vi->index];
|
val = fh->input_map[vi->index];
|
||||||
@ -556,9 +554,7 @@ static int pvr2_queryctrl(struct file *file, void *priv,
|
|||||||
struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
|
struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
|
||||||
struct pvr2_ctrl *cptr;
|
struct pvr2_ctrl *cptr;
|
||||||
int val;
|
int val;
|
||||||
int ret;
|
|
||||||
|
|
||||||
ret = 0;
|
|
||||||
if (vc->id & V4L2_CTRL_FLAG_NEXT_CTRL) {
|
if (vc->id & V4L2_CTRL_FLAG_NEXT_CTRL) {
|
||||||
cptr = pvr2_hdw_get_ctrl_nextv4l(
|
cptr = pvr2_hdw_get_ctrl_nextv4l(
|
||||||
hdw, (vc->id & ~V4L2_CTRL_FLAG_NEXT_CTRL));
|
hdw, (vc->id & ~V4L2_CTRL_FLAG_NEXT_CTRL));
|
||||||
@ -705,11 +701,9 @@ static int pvr2_try_ext_ctrls(struct file *file, void *priv,
|
|||||||
struct v4l2_ext_control *ctrl;
|
struct v4l2_ext_control *ctrl;
|
||||||
struct pvr2_ctrl *pctl;
|
struct pvr2_ctrl *pctl;
|
||||||
unsigned int idx;
|
unsigned int idx;
|
||||||
int ret;
|
|
||||||
|
|
||||||
/* For the moment just validate that the requested control
|
/* For the moment just validate that the requested control
|
||||||
actually exists. */
|
actually exists. */
|
||||||
ret = 0;
|
|
||||||
for (idx = 0; idx < ctls->count; idx++) {
|
for (idx = 0; idx < ctls->count; idx++) {
|
||||||
ctrl = ctls->controls + idx;
|
ctrl = ctls->controls + idx;
|
||||||
pctl = pvr2_hdw_get_ctrl_v4l(hdw, ctrl->id);
|
pctl = pvr2_hdw_get_ctrl_v4l(hdw, ctrl->id);
|
||||||
@ -770,12 +764,10 @@ static int pvr2_s_crop(struct file *file, void *priv, struct v4l2_crop *crop)
|
|||||||
{
|
{
|
||||||
struct pvr2_v4l2_fh *fh = file->private_data;
|
struct pvr2_v4l2_fh *fh = file->private_data;
|
||||||
struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
|
struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
|
||||||
struct v4l2_cropcap cap;
|
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
|
if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
cap.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
|
|
||||||
ret = pvr2_ctrl_set_value(
|
ret = pvr2_ctrl_set_value(
|
||||||
pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_CROPL),
|
pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_CROPL),
|
||||||
crop->c.left);
|
crop->c.left);
|
||||||
|
Loading…
Reference in New Issue
Block a user