drivers/mkrd.c: Fix a warning found in build testing that occurs when CONFIG_DEBUG_INFO is enabled.

This commit is contained in:
Gregory Nutt 2019-10-26 16:54:59 -06:00
parent 6a10254915
commit 9628582ced

View file

@ -39,6 +39,10 @@
#include <nuttx/config.h>
#include <stdint.h>
#include <string.h>
#include <debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/drivers/ramdisk.h>
@ -79,6 +83,7 @@ int mkrd(int minor, uint32_t nsectors, uint16_t sectsize, uint8_t rdflags)
buffer = (FAR uint8_t *)kmm_malloc(sectsize * nsectors);
if (buffer == NULL)
{
ferr("ERROR: kmm_malloc() failed: %d\n", ret);
return -ENOMEM;
}