arch/stm32: Fix nxstyle errors
arch/arm/src/stm32/stm32_rng.c: * Fix nxstyle errors.
This commit is contained in:
parent
21271c44b7
commit
c257c458ad
@ -190,9 +190,10 @@ static int stm32_rng_interrupt(int irq, void *context, FAR void *arg)
|
||||
/* As required by the FIPS PUB (Federal Information Processing Standard
|
||||
* Publication) 140-2, the first random number generated after setting the
|
||||
* RNGEN bit should not be used, but saved for comparison with the next
|
||||
* generated random number. Each subsequent generated random number has to be
|
||||
* compared with the previously generated number. The test fails if any two
|
||||
* compared numbers are equal (continuous random number generator test).
|
||||
* generated random number. Each subsequent generated random number has to
|
||||
* be compared with the previously generated number. The test fails if any
|
||||
* two compared numbers are equal (continuous random number generator
|
||||
* test).
|
||||
*/
|
||||
|
||||
if (g_rngdev.rd_first)
|
||||
@ -242,7 +243,8 @@ static int stm32_rng_interrupt(int irq, void *context, FAR void *arg)
|
||||
* Name: stm32_rng_read
|
||||
****************************************************************************/
|
||||
|
||||
static ssize_t stm32_rng_read(struct file *filep, char *buffer, size_t buflen)
|
||||
static ssize_t stm32_rng_read(struct file *filep, char *buffer,
|
||||
size_t buflen)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user