Skip to content
Snippets Groups Projects
Commit 2ded1b60 authored by oharboe's avatar oharboe
Browse files

ocd_flash_banks now returns empty list when no flash banks are configured...

ocd_flash_banks now returns empty list when no flash banks are configured instead of failing. Allows more orthogonal implementations of tcl code.

git-svn-id: svn://svn.berlios.de/openocd/trunk@1147 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent 26095d66
No related branches found
No related tags found
No related merge requests found
......@@ -157,11 +157,6 @@ static int jim_flash_banks(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
return JIM_ERR;
}
if (!flash_banks)
{
return JIM_ERR;
}
Jim_Obj *list=Jim_NewListObj(interp, NULL, 0);
for (p = flash_banks; p; p = p->next)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment