From 4e4397a64f8d2d45e529ec113e56652fc59e1db5 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 19 Jan 2011 20:02:23 +0000 Subject: Fix issues detected by CppCheck tool git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3261 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/mm/mm_memalign.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nuttx/mm/mm_memalign.c') diff --git a/nuttx/mm/mm_memalign.c b/nuttx/mm/mm_memalign.c index 10c455ff7..02394acc5 100644 --- a/nuttx/mm/mm_memalign.c +++ b/nuttx/mm/mm_memalign.c @@ -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 * * 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; } -- cgit v1.2.3