This is an automated email from Gerrit.

Andreas Fritiofson (andreas.fritiof...@gmail.com) just uploaded a new patch set 
to Gerrit, which you can find at http://openocd.zylin.com/867

-- gerrit

commit d29d7852baf2fb44768f254c4ee1745b0dafaa7e
Author: Andreas Fritiofson <andreas.fritiof...@gmail.com>
Date:   Sun Sep 30 23:04:40 2012 +0200

    dsp5680xx_flash: Remove unused flash bank structure
    
    Change-Id: I947b6730b3741a71303e440daefa4fcf583cb9cf
    Signed-off-by: Andreas Fritiofson <andreas.fritiof...@gmail.com>

diff --git a/src/flash/nor/dsp5680xx_flash.c b/src/flash/nor/dsp5680xx_flash.c
index eb2f3e1..62df9ce 100644
--- a/src/flash/nor/dsp5680xx_flash.c
+++ b/src/flash/nor/dsp5680xx_flash.c
@@ -45,10 +45,6 @@
 #include <target/algorithm.h>
 #include <target/dsp5680xx.h>
 
-struct dsp5680xx_flash_bank {
-       struct working_area *write_algorithm;
-};
-
 static int dsp5680xx_build_sector_list(struct flash_bank *bank)
 {
        uint32_t offset = HFM_FLASH_BASE_ADDR;
@@ -71,13 +67,8 @@ static int dsp5680xx_build_sector_list(struct flash_bank 
*bank)
 /* flash bank dsp5680xx 0 0 0 0 <target#> */
 FLASH_BANK_COMMAND_HANDLER(dsp5680xx_flash_bank_command)
 {
-       struct dsp5680xx_flash_bank *nbank;
-
-       nbank = malloc(sizeof(struct dsp5680xx_flash_bank));
-
        bank->base = HFM_FLASH_BASE_ADDR;
        bank->size = HFM_SIZE_BYTES; /* top 4k not accessible */
-       bank->driver_priv = nbank;
        bank->num_sectors = HFM_SECTOR_COUNT;
        dsp5680xx_build_sector_list(bank);
 

-- 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to