This is an automated email from Gerrit.

Andreas Fritiofson ([email protected]) just uploaded a new patch set 
to Gerrit, which you can find at http://openocd.zylin.com/866

-- gerrit

commit 85edb4e8d1af466597df62bc1eb9d24c3a55a0a4
Author: Andreas Fritiofson <[email protected]>
Date:   Sun Sep 30 23:03:44 2012 +0200

    flash/nor/stellaris: Remove unnecessary write_algorithm check
    
    The pointer must be non-null here since we returned if allocation failed.
    
    Change-Id: I9b75099ed3b3870c815d1df5760ed1f3fe1d20d6
    Signed-off-by: Andreas Fritiofson <[email protected]>

diff --git a/src/flash/nor/stellaris.c b/src/flash/nor/stellaris.c
index 0bb9369..6721395 100644
--- a/src/flash/nor/stellaris.c
+++ b/src/flash/nor/stellaris.c
@@ -1031,8 +1031,7 @@ static int stellaris_write_block(struct flash_bank *bank,
        while (target_alloc_working_area_try(target, buffer_size, &source) != 
ERROR_OK) {
                buffer_size /= 2;
                if (buffer_size <= buf_min) {
-                       if (write_algorithm)
-                               target_free_working_area(target, 
write_algorithm);
+                       target_free_working_area(target, write_algorithm);
                        return ERROR_TARGET_RESOURCE_NOT_AVAILABLE;
                }
                LOG_DEBUG("retry target_alloc_working_area(%s, size=%u)",

-- 

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to