random: remove @return doc for void functions

For functions returning nothing, there is no need to document
with @return, as Doxgen complains about "documented empty
return type of ...".

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2022-01-06 16:55:53 -08:00 committed by Anas Nashif
commit 9f1fc49ac9

View file

@ -31,7 +31,6 @@ static atomic_val_t _rand32_counter;
#define _RAND32_INC 1000000003U #define _RAND32_INC 1000000003U
/** /**
*
* @brief Get a 32 bit random number * @brief Get a 32 bit random number
* *
* The non-random number generator returns values that are based off the * The non-random number generator returns values that are based off the
@ -40,14 +39,12 @@ static atomic_val_t _rand32_counter;
* *
* @return a 32-bit number * @return a 32-bit number
*/ */
uint32_t z_impl_sys_rand32_get(void) uint32_t z_impl_sys_rand32_get(void)
{ {
return k_cycle_get_32() + atomic_add(&_rand32_counter, _RAND32_INC); return k_cycle_get_32() + atomic_add(&_rand32_counter, _RAND32_INC);
} }
/** /**
*
* @brief Fill destination buffer with random numbers * @brief Fill destination buffer with random numbers
* *
* The non-random number generator returns values that are based off the * The non-random number generator returns values that are based off the
@ -56,10 +53,7 @@ uint32_t z_impl_sys_rand32_get(void)
* *
* @param dst destination buffer to fill * @param dst destination buffer to fill
* @param outlen size of destination buffer to fill * @param outlen size of destination buffer to fill
*
* @return N/A
*/ */
void z_impl_sys_rand_get(void *dst, size_t outlen) void z_impl_sys_rand_get(void *dst, size_t outlen)
{ {
uint8_t *udst = dst; uint8_t *udst = dst;