]> git.sur5r.net Git - openocd/commitdiff
ocd_flash_banks now returns empty list when no flash banks are configured instead...
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 7 Nov 2008 09:36:55 +0000 (09:36 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 7 Nov 2008 09:36:55 +0000 (09:36 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1147 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/flash/flash.c

index d5a9210ca7db6c04590752942362cebd0ed5fbdc..64269c2df3a9b2cfa845038ccac748033c100b96 100644 (file)
@@ -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)
        {