boards/arm/uid: fix pointer to int compare

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2022-03-27 14:34:46 +02:00 committed by Xiang Xiao
parent 2ac3e3c793
commit c61710c7b8
11 changed files with 11 additions and 11 deletions

View File

@ -52,7 +52,7 @@
int board_uniqueid(FAR uint8_t *uniqueid)
{
if (uniqueid == 0)
if (uniqueid == NULL)
{
return -EINVAL;
}

View File

@ -59,7 +59,7 @@
#if defined(CONFIG_BOARDCTL_UNIQUEID)
int board_uniqueid(uint8_t *uniqueid)
{
if (uniqueid == 0)
if (uniqueid == NULL)
{
return -EINVAL;
}

View File

@ -59,7 +59,7 @@
#if defined(CONFIG_BOARDCTL_UNIQUEID)
int board_uniqueid(uint8_t *uniqueid)
{
if (uniqueid == 0)
if (uniqueid == NULL)
{
return -EINVAL;
}

View File

@ -59,7 +59,7 @@
#if defined(CONFIG_BOARDCTL_UNIQUEID)
int board_uniqueid(uint8_t *uniqueid)
{
if (uniqueid == 0)
if (uniqueid == NULL)
{
return -EINVAL;
}

View File

@ -60,7 +60,7 @@
#if defined(CONFIG_BOARDCTL_UNIQUEID)
int board_uniqueid(uint8_t *uniqueid)
{
if (uniqueid == 0)
if (uniqueid == NULL)
{
return -EINVAL;
}

View File

@ -60,7 +60,7 @@
#if defined(CONFIG_BOARDCTL_UNIQUEID)
int board_uniqueid(uint8_t *uniqueid)
{
if (uniqueid == 0)
if (uniqueid == NULL)
{
return -EINVAL;
}

View File

@ -388,7 +388,7 @@ int board_ioctl(unsigned int cmd, uintptr_t arg)
#if defined(CONFIG_BOARDCTL_UNIQUEID)
int board_uniqueid(uint8_t *uniqueid)
{
if (uniqueid == 0)
if (uniqueid == NULL)
{
return -EINVAL;
}

View File

@ -442,7 +442,7 @@ int board_ioctl(unsigned int cmd, uintptr_t arg)
#if defined(CONFIG_BOARDCTL_UNIQUEID)
int board_uniqueid(uint8_t *uniqueid)
{
if (uniqueid == 0)
if (uniqueid == NULL)
{
return -EINVAL;
}

View File

@ -155,7 +155,7 @@ int board_app_initialize(uintptr_t arg)
#if defined(CONFIG_BOARDCTL_UNIQUEID)
int board_uniqueid(uint8_t *uniqueid)
{
if (uniqueid == 0)
if (uniqueid == NULL)
{
return -EINVAL;
}

View File

@ -346,7 +346,7 @@ int board_ioctl(unsigned int cmd, uintptr_t arg)
#if defined(CONFIG_BOARDCTL_UNIQUEID)
int board_uniqueid(uint8_t *uniqueid)
{
if (uniqueid == 0)
if (uniqueid == NULL)
{
return -EINVAL;
}

View File

@ -228,7 +228,7 @@ int board_ioctl(unsigned int cmd, uintptr_t arg)
#if defined(CONFIG_BOARDCTL_UNIQUEID)
int board_uniqueid(uint8_t *uniqueid)
{
if (uniqueid == 0)
if (uniqueid == NULL)
{
return -EINVAL;
}