diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-10-22 21:05:50 -0700 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-05 18:03:18 -0800 |
commit | b7b561aae809ab9022b9f213dc5a12b6d58ce2ee (patch) | |
tree | 7385f125924a53e90e7ef5e636c7f74e83958fb8 /src/jtag/parport.c | |
parent | f6f1dbfafdfac93d8f9a9540c71f011fac7611e0 (diff) |
Improve jtag command argument parsing.
Diffstat (limited to 'src/jtag/parport.c')
-rw-r--r-- | src/jtag/parport.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/jtag/parport.c b/src/jtag/parport.c index 41e02475..12a5eea5 100644 --- a/src/jtag/parport.c +++ b/src/jtag/parport.c @@ -435,9 +435,7 @@ static int parport_handle_parport_port_command(struct command_context_s *cmd_ctx /* only if the port wasn't overwritten by cmdline */ if (parport_port == 0) { - int retval = parse_u16(args[0], &parport_port); - if (ERROR_OK != retval) - return retval; + COMMAND_PARSE_NUMBER(u16, args[0], parport_port); } else { |