[libnpuhost] Use NULL instead of nullptr
authorDongju Chae <dongju.chae@samsung.com>
Wed, 21 Jul 2021 09:54:19 +0000 (18:54 +0900)
committer문지중/On-Device Lab(SR)/Principal Engineer/삼성전자 <jijoong.moon@samsung.com>
Wed, 21 Jul 2021 10:54:04 +0000 (19:54 +0900)
This patch removes nullptr because C programs cannot recognize
nullptr.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
include/host/libnpuhost.h

index e3760a4c05031ba78b6273522298fb7871cd5e1e..95a0e03ef7b9e61e214da6fcd20d71f45b2d7095 100644 (file)
@@ -130,7 +130,7 @@ npubin_meta *getNPUmodel_metadata (const char *model, bool need_extended);
  */
 static inline uint64_t
 getNPUmodel_metasize (npubin_meta *meta) {
-  if (meta == nullptr)
+  if (meta == NULL)
     return 0;
 
   uint64_t extended_metasize = meta->extended_metasize;