Title: [5859] trunk/arch/blackfin/kernel/cplb-nompu/cplbmgr.c: remove redundant statements
Revision
5859
Author
vapier
Date
2008-12-12 14:42:27 -0600 (Fri, 12 Dec 2008)

Log Message

remove redundant statements

Modified Paths


Diff

Modified: trunk/arch/blackfin/kernel/cplb-nompu/cplbmgr.c (5858 => 5859)


--- trunk/arch/blackfin/kernel/cplb-nompu/cplbmgr.c	2008-12-12 20:36:23 UTC (rev 5858)
+++ trunk/arch/blackfin/kernel/cplb-nompu/cplbmgr.c	2008-12-12 20:42:27 UTC (rev 5859)
@@ -98,7 +98,6 @@
 	icplb_tbl[cpu][idx].addr = addr;
 	icplb_tbl[cpu][idx].data = ""
 #endif
-
 }
 
 /*
@@ -132,8 +131,7 @@
  */
 static int evict_one_icplb(int cpu)
 {
-	int i;
-	i = first_switched_icplb + icplb_rr_index[cpu];
+	int i = first_switched_icplb + icplb_rr_index[cpu];
 	if (i >= MAX_CPLBS) {
 		i -= MAX_CPLBS - first_switched_icplb;
 		icplb_rr_index[cpu] -= MAX_CPLBS - first_switched_icplb;
@@ -144,8 +142,7 @@
 
 static int evict_one_dcplb(int cpu)
 {
-	int i;
-	i = first_switched_dcplb + dcplb_rr_index[cpu];
+	int i = first_switched_dcplb + dcplb_rr_index[cpu];
 	if (i >= MAX_CPLBS) {
 		i -= MAX_CPLBS - first_switched_dcplb;
 		dcplb_rr_index[cpu] -= MAX_CPLBS - first_switched_dcplb;
@@ -166,7 +163,6 @@
 		nr_icplb_supv_miss[cpu]++;
 
 	base = 0;
-	idx = 0;
 	for (idx = 0; idx < icplb_nr_bounds; idx++) {
 		eaddr = icplb_bounds[idx].eaddr;
 		if (addr < eaddr)
@@ -212,7 +208,6 @@
 		nr_dcplb_supv_miss[cpu]++;
 
 	base = 0;
-	idx = 0;
 	for (idx = 0; idx < dcplb_nr_bounds; idx++) {
 		eaddr = dcplb_bounds[idx].eaddr;
 		if (addr < eaddr)
@@ -286,4 +281,3 @@
 		return CPLB_UNKNOWN_ERR;
 	}
 }
-
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to