Changeset cc3f87c0 in rtems


Ignore:
Timestamp:
Apr 9, 2015, 6:36:39 AM (6 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, 5, master
Children:
0decc80
Parents:
1b645c3
git-author:
Daniel Hellstrom <daniel@…> (04/09/15 06:36:39)
git-committer:
Daniel Hellstrom <daniel@…> (04/16/15 23:10:28)
Message:

DRVMGR: removed a goto and added comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libdrvmgr/drvmgr.c

    r1b645c3 rcc3f87c0  
    120120        mgr->initializing_objs = 1;
    121121
    122 init_registered_buses:
    123122        /* Take all buses and devices ready into the same stage
    124123         * as the driver manager global level.
     
    171170                 * the same time into init level N.
    172171                 */
    173                 if (bus_might_been_registered)
    174                         goto init_registered_buses;
     172                if (bus_might_been_registered) {
     173                        level = -1; /* restart loop */
     174                }
    175175        }
    176176
     
    599599        int size;
    600600
     601        /* The extra memory "service" is aligned to 4 bytes boundary. */
    601602        size = ((sizeof(struct drvmgr_dev) + 3) & ~0x3) + extra;
    602603        dev = (struct drvmgr_dev *)calloc(size, 1);
     
    617618        int size;
    618619
     620        /* The extra memory "service" is aligned to 4 bytes boundary. */
    619621        size = ((sizeof(struct drvmgr_bus) + 3) & ~0x3) + extra;
    620622        bus = (struct drvmgr_bus *)calloc(size, 1);
Note: See TracChangeset for help on using the changeset viewer.