Skip to content

Commit

Permalink
[AGPGART] Loop cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel =?ISO-8859-1?Q?Marjam=E4ki authored and Dave Jones committed Jan 17, 2006
1 parent 8dca6f3 commit 496ebd3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/char/agp/isoch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 496ebd3

Please sign in to comment.