aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nand/mx3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/nand/mx3.c')
-rw-r--r--src/flash/nand/mx3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nand/mx3.c b/src/flash/nand/mx3.c
index b9f5ff1..dc8d619 100644
--- a/src/flash/nand/mx3.c
+++ b/src/flash/nand/mx3.c
@@ -64,7 +64,7 @@ NAND_DEVICE_COMMAND_HANDLER(imx31_nand_device_command)
{
struct mx3_nf_controller *mx3_nf_info;
mx3_nf_info = malloc(sizeof(struct mx3_nf_controller));
- if (mx3_nf_info == NULL) {
+ if (!mx3_nf_info) {
LOG_ERROR("no memory for nand controller");
return ERROR_FAIL;
}