summaryrefslogtreecommitdiff
path: root/src/flash/mflash.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 07:38:21 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:07 -0800
commitbb6b9988cbd32f5f87e228340172aa1004775df2 (patch)
tree194377a124e35f6b6384fb10ef0099a1c9cfbd79 /src/flash/mflash.c
parentfc01dd6a13167c33491b9ccc1543d34b2e485c32 (diff)
downloadopenocd+libswd-bb6b9988cbd32f5f87e228340172aa1004775df2.tar.gz
openocd+libswd-bb6b9988cbd32f5f87e228340172aa1004775df2.tar.bz2
openocd+libswd-bb6b9988cbd32f5f87e228340172aa1004775df2.tar.xz
openocd+libswd-bb6b9988cbd32f5f87e228340172aa1004775df2.zip
mg_drv_info_t -> struct mg_drv_info
Remove misleading typedef and redundant suffix from struct mg_drv_info.
Diffstat (limited to 'src/flash/mflash.c')
-rw-r--r--src/flash/mflash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/mflash.c b/src/flash/mflash.c
index 7696f0d8..c8461719 100644
--- a/src/flash/mflash.c
+++ b/src/flash/mflash.c
@@ -349,7 +349,7 @@ static int mg_dsk_drv_info(void)
LOG_INFO("mflash: read drive info");
if (! mflash_bank->drv_info)
- mflash_bank->drv_info = malloc(sizeof(mg_drv_info_t));
+ mflash_bank->drv_info = malloc(sizeof(struct mg_drv_info));
target_read_memory(target, mg_buff, 2, sizeof(mg_io_type_drv_info) >> 1,
(uint8_t *)&mflash_bank->drv_info->drv_id);