build: fix NetBSD build warning
[openocd.git] / src / flash / nor / mini51.c
index eb74a314ae2fd92e3bb54ffd7cb00a87bac5119d..46e4188d6bf8b1de4a401b5fc51e2e0662fe2c1e 100644 (file)
 #define PAGE_SIZE          512
 #define TIMEOUT            1000
 
-
 struct mini51_flash_bank {
        bool probed;
 };
@@ -112,7 +111,6 @@ enum mini51_boot_source {
        LDROM = 1
 };
 
-
 /* Private methods */
 
 static int mini51_unlock_reg(struct flash_bank *bank)
@@ -139,7 +137,7 @@ static int mini51_reboot_with_source(struct flash_bank *bank,
 {
        uint32_t ispcon;
        uint32_t isprtc1;
-       bool reboot = false;
+       bool mini51_reboot = false;
        int status;
        int timeout = TIMEOUT;
 
@@ -153,13 +151,13 @@ static int mini51_reboot_with_source(struct flash_bank *bank,
 
        if ((new_source == APROM) && (*prev_source != APROM)) {
                ispcon &= ~ISPCON_BS_LDROM;
-               reboot = true;
+               mini51_reboot = true;
        } else if ((new_source == LDROM) && (*prev_source != LDROM)) {
                ispcon |= ISPCON_BS_LDROM;
-               reboot = true;
+               mini51_reboot = true;
        }
 
-       if (reboot) {
+       if (mini51_reboot) {
                mini51_unlock_reg(bank);
                status = target_write_u32(target, ISPCON, ispcon);
                if (status != ERROR_OK)
@@ -215,7 +213,6 @@ static int mini51_get_flash_size(struct flash_bank *bank, uint32_t *flash_size)
        return ERROR_OK;
 }
 
-
 /* Public (API) methods */
 
 FLASH_BANK_COMMAND_HANDLER(mini51_flash_bank_command)
@@ -398,7 +395,6 @@ static int mini51_write(struct flash_bank *bank, uint8_t *buffer, uint32_t offse
        return ERROR_OK;
 }
 
-
 static int get_mini51_info(struct flash_bank *bank, char *buf, int buf_size)
 {
        snprintf(buf, buf_size, "Mini51 flash driver");
@@ -460,4 +456,3 @@ struct flash_driver mini51_flash = {
        .protect_check = mini51_protect_check,
        .info = get_mini51_info,
 };
-

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)