Skip to contentSkip to conversation

drivers/char/agp/isoch.c: Loop cleanup

PATCH New Daniel Marjamäki 1 participant 1 message Dec 19, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/char/agp/isoch.c: Loop cleanup

From: Daniel Marjamäki <[email protected]>

Loop cleanup
The loop contains a command that is only used in the last iteration. I moved the command outside the loop. Compile-tested

drivers/char/agp/isoch.c +1 -3
@@ -218,10 +218,8 @@ static int agp_3_5_isochronous_node_enab
 			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. */

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors