summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-11-07 09:36:55 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-11-07 09:36:55 +0000
commit2ded1b60e6fce2f613fe878fa55cce719a538467 (patch)
treec0e534083fbdf96876ae9be0a14fad42e3705898 /src
parent26095d6612d60b470298e7136e7ffd6c74c9f371 (diff)
downloadopenocd+libswd-2ded1b60e6fce2f613fe878fa55cce719a538467.tar.gz
openocd+libswd-2ded1b60e6fce2f613fe878fa55cce719a538467.tar.bz2
openocd+libswd-2ded1b60e6fce2f613fe878fa55cce719a538467.tar.xz
openocd+libswd-2ded1b60e6fce2f613fe878fa55cce719a538467.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/flash/flash.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/flash/flash.c b/src/flash/flash.c
index d5a9210c..64269c2d 100644
--- a/src/flash/flash.c
+++ b/src/flash/flash.c
@@ -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)
{