aboutsummaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorDaniel =?ISO-8859-1?Q?Marjam=E4ki <daniel.marjamaki@comhem.se>2005-12-23 16:18:54 +0000
committerDave Jones <davej@redhat.com>2006-01-16 20:53:45 -0800
commit496ebd386439fee838df6b9c7d1306c36e7f6952 (patch)
treee1d75a28719e8c28c9ff4591db3311c1430c3ef4 /drivers/char
parent8dca6f33f026dc8a7fc2710b78a7521e899bd611 (diff)
[AGPGART] Loop cleanup
The loop contains a command that is only used in the last iteration. I moved the command outside the loop. Compile-tested Signed-off-by: Daniel Marjamäki <daniel.marjamaki at comhem.se> Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/agp/isoch.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/agp/isoch.c b/drivers/char/agp/isoch.c
index 40083241804..7c14a096b85 100644
--- a/drivers/char/agp/isoch.c
+++ b/drivers/char/agp/isoch.c
@@ -218,10 +218,8 @@ static int agp_3_5_isochronous_node_enable(struct agp_bridge_data *bridge,
master[cdev].rq *= (1 << (master[cdev].y - 1));
tot_rq += master[cdev].rq;
-
- if (cdev == ndevs-1)
- master[cdev].n += rem;
}
+ master[ndevs-1].n += rem;
/* Figure the number of isochronous and asynchronous RQ slots the
* target is providing. */