aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nand/mxc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/nand/mxc.c')
-rw-r--r--src/flash/nand/mxc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nand/mxc.c b/src/flash/nand/mxc.c
index 1fe7d30..7aac721 100644
--- a/src/flash/nand/mxc.c
+++ b/src/flash/nand/mxc.c
@@ -89,7 +89,7 @@ NAND_DEVICE_COMMAND_HANDLER(mxc_nand_device_command)
int hwecc_needed;
mxc_nf_info = malloc(sizeof(struct mxc_nf_controller));
- if (mxc_nf_info == NULL) {
+ if (!mxc_nf_info) {
LOG_ERROR("no memory for nand controller");
return ERROR_FAIL;
}