kinetis: unsuppress variable scope warnings in rnga.c

This commit is contained in:
Joakim Gebart 2015-03-24 08:47:51 +01:00
parent 2682c38ee8
commit 64d7a5f55a

View File

@ -35,8 +35,6 @@ void random_init(void)
int random_read(char *buf, unsigned int num) int random_read(char *buf, unsigned int num)
{ {
/* cppcheck-suppress variableScope */
uint32_t tmp;
int count = 0; int count = 0;
/* self-seeding */ /* self-seeding */
@ -48,7 +46,7 @@ int random_read(char *buf, unsigned int num)
/* wait for random data to be ready to read */ /* wait for random data to be ready to read */
while (!(KINETIS_RNGA->SR & RNG_SR_OREG_LVL_MASK)); while (!(KINETIS_RNGA->SR & RNG_SR_OREG_LVL_MASK));
tmp = KINETIS_RNGA->OR; uint32_t tmp = KINETIS_RNGA->OR;
/* copy data into result vector */ /* copy data into result vector */
for (int i = 0; i < 4 && count < num; i++) { for (int i = 0; i < 4 && count < num; i++) {