mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Fix issues detected by CppCheck tool
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3261 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
/************************************************************
|
||||
* mm/mm_memalign.c
|
||||
*
|
||||
* Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2007, 2009, 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -100,7 +100,7 @@ FAR void *memalign(size_t alignment, size_t size)
|
||||
/* Then malloc that size */
|
||||
|
||||
rawchunk = (size_t)malloc(allocsize);
|
||||
if (!rawchunk)
|
||||
if (rawchunk == NULL)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user