diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-09-26 18:36:10 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-09-26 18:36:10 +1000 |
commit | aa858131c0c0f2eef4ced7987f0becbe27d378e0 (patch) | |
tree | 011d3a189d6aa3f9ad60fce8d82fc5699c6a5179 /src | |
parent | ca71163aa02512915a7c022680ff0c9186ca0b03 (diff) | |
parent | 0d35e6b6ae5eb8c44f7a35d0dac0fc3bcf41a130 (diff) | |
download | uGFX-aa858131c0c0f2eef4ced7987f0becbe27d378e0.tar.gz uGFX-aa858131c0c0f2eef4ced7987f0becbe27d378e0.tar.bz2 uGFX-aa858131c0c0f2eef4ced7987f0becbe27d378e0.zip |
Merge branch 'master' into newmouse
Diffstat (limited to 'src')
-rw-r--r-- | src/gdriver/gdriver_gdriver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gdriver/gdriver_gdriver.c b/src/gdriver/gdriver_gdriver.c index 916b44fb..210840b1 100644 --- a/src/gdriver/gdriver_gdriver.c +++ b/src/gdriver/gdriver_gdriver.c @@ -15,6 +15,7 @@ // Define the tables to hold the driver instances. static GDriver *dhead; +static GDriver *dtail; // The system initialization. void _gdriverInit(void) { @@ -29,12 +30,11 @@ void _gdriverDeinit(void) { GDriver *gdriverRegister(const GDriverVMT *vmt, void *param) { GDriver * pd; - GDriver * dtail; unsigned dinstance, sinstance; // Loop to find the driver instance and the system instance numbers dinstance = sinstance = 0; - for(pd = dhead; pd; dtail = pd, pd = pd->driverchain) { + for(pd = dhead; pd; pd = pd->driverchain) { if (pd->vmt == vmt) dinstance++; if (pd->vmt->type == vmt->type) |