[RTEMS Project] #2868: src/c/src/lib/libbsp/arm/smdk2410/smc/smc.c: 3 * pointless local variables ?

RTEMS trac trac at rtems.org
Mon Jan 16 17:01:57 UTC 2017


#2868: src/c/src/lib/libbsp/arm/smdk2410/smc/smc.c: 3 * pointless local variables
?
-------------------------+------------------
 Reporter:  dcb          |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  lowest       |  Milestone:  4.12
Component:  General      |    Version:  4.11
 Severity:  normal       |   Keywords:
-------------------------+------------------
 [src/c/src/lib/libbsp/arm/smdk2410/smc/smc.c:235]: (style) Variable 'cnt1'
 is modified but its new value is never used.
 [src/c/src/lib/libbsp/arm/smdk2410/smc/smc.c:243]: (style) Variable 'cnt2'
 is modified but its new value is never used.
 [src/c/src/lib/libbsp/arm/smdk2410/smc/smc.c:246]: (style) Variable 'cnt3'
 is modified but its new value is never used.

 $ egrep "cnt1|cnt2|cnt3" src/c/src/lib/libbsp/arm/smdk2410/smc/smc.c
   uint32_t pblock, i, j, lblock, zone, count, cnt1, cnt2, cnt3;
   cnt1 = 0;
   cnt2 = 0;
   cnt3 = 0;
       cnt1++;
         cnt2++;
         cnt3++;
 $

 Maybe someone left some debug code in ?

--
Ticket URL: <http://devel.rtems.org/ticket/2868>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list