mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
arch/stm32: Fix nxstyle errors
arch/arm/src/stm32/stm32_rng.c:
* Fix nxstyle errors.
This commit is contained in:
committed by
Abdelatif Guettouche
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
|
/* As required by the FIPS PUB (Federal Information Processing Standard
|
||||||
* Publication) 140-2, the first random number generated after setting the
|
* Publication) 140-2, the first random number generated after setting the
|
||||||
* RNGEN bit should not be used, but saved for comparison with the next
|
* RNGEN bit should not be used, but saved for comparison with the next
|
||||||
* generated random number. Each subsequent generated random number has to be
|
* generated random number. Each subsequent generated random number has to
|
||||||
* compared with the previously generated number. The test fails if any two
|
* be compared with the previously generated number. The test fails if any
|
||||||
* compared numbers are equal (continuous random number generator test).
|
* two compared numbers are equal (continuous random number generator
|
||||||
|
* test).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (g_rngdev.rd_first)
|
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
|
* 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;
|
int ret;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user