On Tue, Nov 9, 2010 at 11:58 AM, Peter Stuge <[email protected]> wrote: > Øyvind Harboe wrote: >> - return ERROR_OK; >> + /* Did we detect a failure condition that we cleared? */ >> + if (detected_failure != ERROR_OK) >> + return detected_failure; >> + return retval; > > Please just use retval also for the error.
I'm not sure what you mean. I'm detecting an error, then running cleanup, which can also fail and is using retval. After the cleanup has happened, I report the original error. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
