summaryrefslogtreecommitdiff
path: root/src/flash/mflash.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-27 12:21:28 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-27 12:21:28 +0000
commitd2089dbae0c3ec1fc5bef02ea93b9f65b02de597 (patch)
treee034a5e96f876d140b963e7f8a40d7de1682ce8a /src/flash/mflash.c
parent2caf8655b59873d63421a9f4b23e813d27dd880b (diff)
downloadopenocd+libswd-d2089dbae0c3ec1fc5bef02ea93b9f65b02de597.tar.gz
openocd+libswd-d2089dbae0c3ec1fc5bef02ea93b9f65b02de597.tar.bz2
openocd+libswd-d2089dbae0c3ec1fc5bef02ea93b9f65b02de597.tar.xz
openocd+libswd-d2089dbae0c3ec1fc5bef02ea93b9f65b02de597.zip
unsik Kim <donari75@gmail.com>:
Remove unused mflash driver 'prove' field. git-svn-id: svn://svn.berlios.de/openocd/trunk@1929 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/mflash.c')
-rw-r--r--src/flash/mflash.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/flash/mflash.c b/src/flash/mflash.c
index f668db0d..29f562b1 100644
--- a/src/flash/mflash.c
+++ b/src/flash/mflash.c
@@ -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;
}