This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new c61710c boards/arm/uid: fix pointer to int compare
c61710c is described below
commit c61710c7b83620efce5372307a6b65f89a0304db
Author: Petro Karashchenko <[email protected]>
AuthorDate: Sun Mar 27 14:34:46 2022 +0200
boards/arm/uid: fix pointer to int compare
Signed-off-by: Petro Karashchenko <[email protected]>
---
boards/arm/kinetis/freedom-k64f/src/k64_uid.c | 2 +-
boards/arm/stm32/nucleo-f303re/src/stm32_uid.c | 2 +-
boards/arm/stm32/omnibusf4/src/stm32_uid.c | 2 +-
boards/arm/stm32/stm32f4discovery/src/stm32_uid.c | 2 +-
boards/arm/stm32h7/nucleo-h743zi/src/stm32_uid.c | 2 +-
boards/arm/stm32h7/stm32h747i-disco/src/stm32_uid.c | 2 +-
boards/arm/stm32l4/nucleo-l432kc/src/stm32_appinit.c | 2 +-
boards/arm/stm32l4/nucleo-l476rg/src/stm32_appinit.c | 2 +-
boards/arm/stm32l4/stm32l476-mdk/src/stm32_bringup.c | 2 +-
boards/arm/stm32l4/stm32l476vg-disco/src/stm32_appinit.c | 2 +-
boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_appinit.c | 2 +-
11 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/boards/arm/kinetis/freedom-k64f/src/k64_uid.c
b/boards/arm/kinetis/freedom-k64f/src/k64_uid.c
index 5b6c8b2..7095eb0 100644
--- a/boards/arm/kinetis/freedom-k64f/src/k64_uid.c
+++ b/boards/arm/kinetis/freedom-k64f/src/k64_uid.c
@@ -52,7 +52,7 @@
int board_uniqueid(FAR uint8_t *uniqueid)
{
- if (uniqueid == 0)
+ if (uniqueid == NULL)
{
return -EINVAL;
}
diff --git a/boards/arm/stm32/nucleo-f303re/src/stm32_uid.c
b/boards/arm/stm32/nucleo-f303re/src/stm32_uid.c
index e7a1894..027a39c 100644
--- a/boards/arm/stm32/nucleo-f303re/src/stm32_uid.c
+++ b/boards/arm/stm32/nucleo-f303re/src/stm32_uid.c
@@ -59,7 +59,7 @@
#if defined(CONFIG_BOARDCTL_UNIQUEID)
int board_uniqueid(uint8_t *uniqueid)
{
- if (uniqueid == 0)
+ if (uniqueid == NULL)
{
return -EINVAL;
}
diff --git a/boards/arm/stm32/omnibusf4/src/stm32_uid.c
b/boards/arm/stm32/omnibusf4/src/stm32_uid.c
index 35a639c..810cd7e 100644
--- a/boards/arm/stm32/omnibusf4/src/stm32_uid.c
+++ b/boards/arm/stm32/omnibusf4/src/stm32_uid.c
@@ -59,7 +59,7 @@
#if defined(CONFIG_BOARDCTL_UNIQUEID)
int board_uniqueid(uint8_t *uniqueid)
{
- if (uniqueid == 0)
+ if (uniqueid == NULL)
{
return -EINVAL;
}
diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_uid.c
b/boards/arm/stm32/stm32f4discovery/src/stm32_uid.c
index 1f4d0c3..5c03486 100644
--- a/boards/arm/stm32/stm32f4discovery/src/stm32_uid.c
+++ b/boards/arm/stm32/stm32f4discovery/src/stm32_uid.c
@@ -59,7 +59,7 @@
#if defined(CONFIG_BOARDCTL_UNIQUEID)
int board_uniqueid(uint8_t *uniqueid)
{
- if (uniqueid == 0)
+ if (uniqueid == NULL)
{
return -EINVAL;
}
diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_uid.c
b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_uid.c
index 0bccf9d..8fadc29 100644
--- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_uid.c
+++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_uid.c
@@ -60,7 +60,7 @@
#if defined(CONFIG_BOARDCTL_UNIQUEID)
int board_uniqueid(uint8_t *uniqueid)
{
- if (uniqueid == 0)
+ if (uniqueid == NULL)
{
return -EINVAL;
}
diff --git a/boards/arm/stm32h7/stm32h747i-disco/src/stm32_uid.c
b/boards/arm/stm32h7/stm32h747i-disco/src/stm32_uid.c
index a354e26..39e3c32 100644
--- a/boards/arm/stm32h7/stm32h747i-disco/src/stm32_uid.c
+++ b/boards/arm/stm32h7/stm32h747i-disco/src/stm32_uid.c
@@ -60,7 +60,7 @@
#if defined(CONFIG_BOARDCTL_UNIQUEID)
int board_uniqueid(uint8_t *uniqueid)
{
- if (uniqueid == 0)
+ if (uniqueid == NULL)
{
return -EINVAL;
}
diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_appinit.c
b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_appinit.c
index ad8ecf4..922c3d2 100644
--- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_appinit.c
+++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_appinit.c
@@ -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;
}
diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_appinit.c
b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_appinit.c
index 12e8741..a3cade9 100644
--- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_appinit.c
+++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_appinit.c
@@ -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;
}
diff --git a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_bringup.c
b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_bringup.c
index b13b7ca..dc8d8b5 100644
--- a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_bringup.c
+++ b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_bringup.c
@@ -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;
}
diff --git a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_appinit.c
b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_appinit.c
index a61f1af..92bf86c 100644
--- a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_appinit.c
+++ b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_appinit.c
@@ -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;
}
diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_appinit.c
b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_appinit.c
index b7ace74..4559727 100644
--- a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_appinit.c
+++ b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_appinit.c
@@ -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;
}