Changeset 3f09d635 in rtems


Ignore:
Timestamp:
Jan 19, 2017, 5:58:44 PM (2 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
master
Children:
70e8abf
Parents:
66bd19ea
Message:

smdk2410: delete unused variables

Closes #2868.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/smdk2410/smc/smc.c

    r66bd19ea r3f09d635  
    212212static void smc_make_l2p(void)
    213213{
    214   uint32_t pblock, i, j, lblock, zone, count, cnt1, cnt2, cnt3;
     214  uint32_t pblock, i, j, lblock, zone, count;
    215215  uint8_t data[512];
    216 
    217   cnt1 = 0;
    218   cnt2 = 0;
    219   cnt3 = 0;
    220216
    221217  for (i=0;i<0x2000;i++) {
     
    233229      smc_l2p[lblock] = pblock;
    234230      smc_p2l[pblock] = lblock;
    235       cnt1++;
    236231    } else {
    237232      count = 0;
     
    241236      if (count == 16) {
    242237        smc_p2l[pblock] = BLOCK_UNUSED;
    243         cnt2++;
    244238      } else {
    245239        smc_p2l[pblock] = BLOCK_RESERVED;
    246         cnt3++;
    247240      }
    248241    }
Note: See TracChangeset for help on using the changeset viewer.