target/xscale: remove duplicated command

Reported by clang static analyzer.

Change-Id: I893af10852af4885507ed62d024008159a80dd56
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/5382
Tested-by: jenkins
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
This commit is contained in:
Tomas Vanek 2019-12-20 23:54:29 +01:00
parent af0dda8266
commit 7fffa3cbc6
1 changed files with 0 additions and 1 deletions

View File

@ -3227,7 +3227,6 @@ COMMAND_HANDLER(xscale_handle_vector_catch_command)
if (retval != ERROR_OK) if (retval != ERROR_OK)
return retval; return retval;
dcsr_value = buf_get_u32(dcsr_reg->value, 0, 32);
if (CMD_ARGC > 0) { if (CMD_ARGC > 0) {
if (CMD_ARGC == 1) { if (CMD_ARGC == 1) {
if (strcmp(CMD_ARGV[0], "all") == 0) { if (strcmp(CMD_ARGV[0], "all") == 0) {