This is an automated email from Gerrit.

"zapb <d...@zapb.de>" just uploaded a new patch set to Gerrit, which you can 
find at https://review.openocd.org/c/openocd/+/8003

-- gerrit

commit ba58b801c616664e94ab212483b0deba2dd2178e
Author: Marc Schink <d...@zapb.de>
Date:   Sat Nov 11 10:24:51 2023 +0100

    flash/nor/pic32mx: Remove redundant error message
    
    The correct syntax is already suggested due to the return
    value used.
    
    Change-Id: I990c0f7a0871f4b1a0fcdd13afc190149302443c
    Signed-off-by: Marc Schink <d...@zapb.de>

diff --git a/src/flash/nor/pic32mx.c b/src/flash/nor/pic32mx.c
index 9a1a634125..464c696ef6 100644
--- a/src/flash/nor/pic32mx.c
+++ b/src/flash/nor/pic32mx.c
@@ -866,10 +866,8 @@ COMMAND_HANDLER(pic32mx_handle_unlock_command)
        struct mips_ejtag *ejtag_info;
        int timeout = 10;
 
-       if (CMD_ARGC < 1) {
-               command_print(CMD, "pic32mx unlock <bank>");
+       if (CMD_ARGC < 1)
                return ERROR_COMMAND_SYNTAX_ERROR;
-       }
 
        struct flash_bank *bank;
        int retval = CALL_COMMAND_HANDLER(flash_command_get_bank, 0, &bank);

-- 

Reply via email to