Skip to content

Commit

Permalink
[media] bw-qcam: remove unnecessary qc_reset and qc_setscanmode calls
Browse files Browse the repository at this point in the history
These are already done elsewhere.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Feb 5, 2013
1 parent 1888e4a commit 971dfc6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/media/parport/bw-qcam.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,6 @@ static void qc_set(struct qcam *q)
int val;
int val2;

qc_reset(q);

/* Set the brightness. Yes, this is repetitive, but it works.
* Shorter versions seem to fail subtly. Feel free to try :-). */
/* I think the problem was in qc_command, not here -- bls */
Expand Down Expand Up @@ -879,10 +877,8 @@ static int qcam_s_ctrl(struct v4l2_ctrl *ctrl)
ret = -EINVAL;
break;
}
if (ret == 0) {
qc_setscanmode(qcam);
if (ret == 0)
qcam->status |= QC_PARAM_CHANGE;
}
return ret;
}

Expand Down

0 comments on commit 971dfc6

Please sign in to comment.