unsik Kim <donari75@gmail.com>:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 27 May 2009 12:21:28 +0000 (12:21 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 27 May 2009 12:21:28 +0000 (12:21 +0000)
Remove unused mflash driver 'prove' field.

git-svn-id: svn://svn.berlios.de/openocd/trunk@1929 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/flash/mflash.c
src/flash/mflash.h

index f668db0d7c27cf258e14eaafd19133c9cb0693a8..29f562b1d9f5ffdd3d2d4ee56d602d587729e924 100644 (file)
@@ -358,8 +358,6 @@ static int mg_dsk_drv_info(void)
 
 static int mg_mflash_probe(void)
 {
-       mflash_bank->proved = 0;
-
        mg_init_gpio();
 
        LOG_INFO("reset mflash");
@@ -387,8 +385,6 @@ static int mg_mflash_probe(void)
        if (mg_dsk_drv_info() != ERROR_OK)
                return ERROR_FAIL;
 
-       mflash_bank->proved = 1;
-
        return ERROR_OK;
 }
 
@@ -678,10 +674,6 @@ static int mg_write_cmd(struct command_context_s *cmd_ctx, char *cmd, char **arg
 
        address = strtoul(args[2], NULL, 0);
 
-       if (! mflash_bank->proved ) {
-               mg_mflash_probe();
-       }
-
        if (fileio_open(&fileio, args[1], FILEIO_READ, FILEIO_BINARY) != ERROR_OK) {
                return ERROR_FAIL;
        }
@@ -730,10 +722,6 @@ static int mg_dump_cmd(struct command_context_s *cmd_ctx, char *cmd, char **args
        address = strtoul(args[2], NULL, 0);
        size = strtoul(args[3], NULL, 0);
 
-       if (! mflash_bank->proved ) {
-                       mg_mflash_probe();
-       }
-
        if (fileio_open(&fileio, args[1], FILEIO_WRITE, FILEIO_BINARY) != ERROR_OK) {
                return ERROR_FAIL;
        }
index d44291651a10770fc53599eb04a52edfae207fea..3d88ef4c3f6062438fd727e3ae38ba3069f9cefa 100644 (file)
@@ -131,8 +131,6 @@ typedef struct mflash_bank_s
        mflash_gpio_drv_t *gpio_drv;
        target_t *target;
        mg_drv_info_t *drv_info;
-
-       u8 proved;
 } mflash_bank_t;
 
 extern int mflash_register_commands(struct command_context_s *cmd_ctx);

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)