mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
media: saa7164: remove variable cnt
Variable cnt is just being incremented and it's never used anywhere else. The variable and the increment are redundant so remove it. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
301fd0dd18
commit
16f3211110
|
|
@ -352,7 +352,7 @@ static void saa7164_work_enchandler(struct work_struct *w)
|
|||
container_of(w, struct saa7164_port, workenc);
|
||||
struct saa7164_dev *dev = port->dev;
|
||||
|
||||
u32 wp, mcb, rp, cnt = 0;
|
||||
u32 wp, mcb, rp;
|
||||
|
||||
port->last_svc_msecs_diff = port->last_svc_msecs;
|
||||
port->last_svc_msecs = jiffies_to_msecs(jiffies);
|
||||
|
|
@ -405,7 +405,6 @@ static void saa7164_work_enchandler(struct work_struct *w)
|
|||
|
||||
saa7164_work_enchandler_helper(port, rp);
|
||||
port->last_svc_rp = rp;
|
||||
cnt++;
|
||||
|
||||
if (rp == mcb)
|
||||
break;
|
||||
|
|
@ -429,7 +428,7 @@ static void saa7164_work_vbihandler(struct work_struct *w)
|
|||
container_of(w, struct saa7164_port, workenc);
|
||||
struct saa7164_dev *dev = port->dev;
|
||||
|
||||
u32 wp, mcb, rp, cnt = 0;
|
||||
u32 wp, mcb, rp;
|
||||
|
||||
port->last_svc_msecs_diff = port->last_svc_msecs;
|
||||
port->last_svc_msecs = jiffies_to_msecs(jiffies);
|
||||
|
|
@ -481,7 +480,6 @@ static void saa7164_work_vbihandler(struct work_struct *w)
|
|||
|
||||
saa7164_work_enchandler_helper(port, rp);
|
||||
port->last_svc_rp = rp;
|
||||
cnt++;
|
||||
|
||||
if (rp == mcb)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user