X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fjtag%2Fat91rm9200.c;h=90d94c958b14245d4fb7a2510fdd8e6b07d387f0;hp=dc9797e09475306324e53499e55fa3bd39bb3165;hb=7bf1a86e473a12882bf6f71cb4d0d416394b69d4;hpb=5b9899d6ea1e0cf763465c64c700f20eddd893f9 diff --git a/src/jtag/at91rm9200.c b/src/jtag/at91rm9200.c index dc9797e094..90d94c958b 100644 --- a/src/jtag/at91rm9200.c +++ b/src/jtag/at91rm9200.c @@ -187,7 +187,7 @@ static int at91rm9200_speed(int speed) static int at91rm9200_handle_device_command(struct command_context *cmd_ctx, char *cmd, char **args, int argc) { - if (argc == 0) + if (CMD_ARGC == 0) return ERROR_OK; /* only if the device name wasn't overwritten by cmdline */