Index: c/src/lib/libcpu/powerpc/ChangeLog
===================================================================
--- c/src/lib/libcpu/powerpc/ChangeLog	(revision a6b5e83638170f08e49f337c3b16d4d0e0b45ccf)
+++ c/src/lib/libcpu/powerpc/ChangeLog	(revision f865fc5db5eb839d2d1b829cfedadea0820a38d6)
@@ -1,4 +1,7 @@
 2011-12-01	Ralf CorsÃ©pius <ralf.corsepius@rtems.org>
 
+	* mpc8260/console-generic/console-generic.c,
+	mpc8xx/console-generic/console-generic.c:
+	Eliminate unused var "nb_overflow".
 	* shared/include/cpuIdent.c, shared/include/cpuIdent.h
 	(get_ppc_cpu_type_name): Return const char*.
Index: c/src/lib/libcpu/powerpc/mpc8260/console-generic/console-generic.c
===================================================================
--- c/src/lib/libcpu/powerpc/mpc8260/console-generic/console-generic.c	(revision a6b5e83638170f08e49f337c3b16d4d0e0b45ccf)
+++ c/src/lib/libcpu/powerpc/mpc8260/console-generic/console-generic.c	(revision f865fc5db5eb839d2d1b829cfedadea0820a38d6)
@@ -354,6 +354,4 @@
 m8xx_scc1_interrupt_handler (rtems_irq_hdl_param unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
@@ -368,5 +366,5 @@
         (const void *) RxBd[SCC1_MINOR]->buffer,
         RxBd[SCC1_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SCC1_MINOR],
         (char *)RxBd[SCC1_MINOR]->buffer,
@@ -398,6 +396,4 @@
 m8xx_scc2_interrupt_handler (rtems_irq_hdl_param unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
@@ -412,5 +408,5 @@
         (const void *) RxBd[SCC2_MINOR]->buffer,
         RxBd[SCC2_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SCC2_MINOR],
         (char *)RxBd[SCC2_MINOR]->buffer,
@@ -443,6 +439,4 @@
 m8xx_scc3_interrupt_handler (rtems_irq_hdl_param unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
@@ -457,5 +451,5 @@
         (const void *) RxBd[SCC3_MINOR]->buffer,
         RxBd[SCC3_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SCC3_MINOR],
         (char *)RxBd[SCC3_MINOR]->buffer,
@@ -489,6 +483,4 @@
 m8xx_scc4_interrupt_handler (rtems_irq_hdl_param unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
@@ -503,5 +495,5 @@
         (const void *) RxBd[SCC4_MINOR]->buffer,
         RxBd[SCC4_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SCC4_MINOR],
         (char *)RxBd[SCC4_MINOR]->buffer,
@@ -533,6 +525,4 @@
 m8xx_smc1_interrupt_handler (rtems_irq_hdl_param unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
@@ -547,5 +537,5 @@
         (const void *) RxBd[SMC1_MINOR]->buffer,
         RxBd[SMC1_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SMC1_MINOR],
         (char *)RxBd[SMC1_MINOR]->buffer,
@@ -578,6 +568,4 @@
 m8xx_smc2_interrupt_handler (rtems_irq_hdl_param unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
@@ -592,5 +580,5 @@
         (const void *) RxBd[SMC2_MINOR]->buffer,
         RxBd[SMC2_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SMC2_MINOR],
         (char *)RxBd[SMC2_MINOR]->buffer,
Index: c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c
===================================================================
--- c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c	(revision a6b5e83638170f08e49f337c3b16d4d0e0b45ccf)
+++ c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c	(revision f865fc5db5eb839d2d1b829cfedadea0820a38d6)
@@ -386,6 +386,4 @@
 static void m8xx_scc2_interrupt_handler (void *unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
@@ -400,5 +398,5 @@
         (const void *) RxBd[SCC2_MINOR]->buffer,
         RxBd[SCC2_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SCC2_MINOR],
         (char *)RxBd[SCC2_MINOR]->buffer,
@@ -428,6 +426,4 @@
 m8xx_scc3_interrupt_handler (void *unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
@@ -442,5 +438,5 @@
         (const void *) RxBd[SCC3_MINOR]->buffer,
         RxBd[SCC3_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SCC3_MINOR],
         (char *)RxBd[SCC3_MINOR]->buffer,
@@ -469,6 +465,4 @@
 m8xx_scc4_interrupt_handler (void *unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
@@ -483,5 +477,5 @@
         (const void *) RxBd[SCC4_MINOR]->buffer,
         RxBd[SCC4_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SCC4_MINOR],
         (char *)RxBd[SCC4_MINOR]->buffer,
@@ -510,6 +504,4 @@
 m8xx_smc1_interrupt_handler (void *unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
@@ -524,5 +516,5 @@
         (const void *) RxBd[SMC1_MINOR]->buffer,
         RxBd[SMC1_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SMC1_MINOR],
         (char *)RxBd[SMC1_MINOR]->buffer,
@@ -551,6 +543,4 @@
 m8xx_smc2_interrupt_handler (void *unused)
 {
-  int nb_overflow;
-
   /*
    * Buffer received?
@@ -565,5 +555,5 @@
         (const void *) RxBd[SMC2_MINOR]->buffer,
         RxBd[SMC2_MINOR]->length );
-      nb_overflow = rtems_termios_enqueue_raw_characters(
+      rtems_termios_enqueue_raw_characters(
         (void *)ttyp[SMC2_MINOR],
         (char *)RxBd[SMC2_MINOR]->buffer,
