X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fs3c2440_nand.c;h=c6d658d45eeae903193e0c0b44f6c9b7c4238bb0;hp=fd1fbd0acdff5999c168e82c87b94bf1ea36b498;hb=76868e071306bc83d25b89e57b785fef4637c4c8;hpb=e8e94ab2454566fb9a226693e5c1de2264634a48 diff --git a/src/flash/s3c2440_nand.c b/src/flash/s3c2440_nand.c index fd1fbd0acd..c6d658d45e 100644 --- a/src/flash/s3c2440_nand.c +++ b/src/flash/s3c2440_nand.c @@ -36,11 +36,7 @@ static int s3c2440_nand_device_command(struct command_context_s *cmd_ctx, char * struct nand_device_s *nand) { s3c24xx_nand_controller_t *info; - - info = s3c24xx_nand_device_command(cmd_ctx, cmd, args, argc, nand); - if (info == NULL) { - return ERROR_NAND_DEVICE_INVALID; - } + CALL_S3C24XX_DEVICE_COMMAND(nand, &info); /* fill in the address fields for the core device */ info->cmd = S3C2440_NFCMD;