kernel: 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>
diff --git a/kernel/mem_slab.c b/kernel/mem_slab.c
index ab64eff..5f3485e 100644
--- a/kernel/mem_slab.c
+++ b/kernel/mem_slab.c
@@ -21,7 +21,8 @@
* Perform any initialization of memory slabs that wasn't done at build time.
* Currently this just involves creating the list of free blocks for each slab.
*
- * @return N/A
+ * @retval 0 on success.
+ * @retval -EINVAL if @p slab contains invalid configuration and/or values.
*/
static int create_free_list(struct k_mem_slab *slab)
{
@@ -50,7 +51,7 @@
*
* Perform any initialization that wasn't done at build time.
*
- * @return N/A
+ * @return 0 on success, fails otherwise.
*/
static int init_mem_slab_module(const struct device *dev)
{