diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-09-26 18:35:51 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-09-26 18:35:51 +1000 |
commit | 0d35e6b6ae5eb8c44f7a35d0dac0fc3bcf41a130 (patch) | |
tree | 187d68d539dca628f227ff43a4fa9b38a7e0d1ab /src/gdriver | |
parent | 2d811142562c9509c82ffa2fa5dedeeae22b3e17 (diff) | |
download | uGFX-0d35e6b6ae5eb8c44f7a35d0dac0fc3bcf41a130.tar.gz uGFX-0d35e6b6ae5eb8c44f7a35d0dac0fc3bcf41a130.tar.bz2 uGFX-0d35e6b6ae5eb8c44f7a35d0dac0fc3bcf41a130.zip |
Another GDriver bugfix
Diffstat (limited to 'src/gdriver')
-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) |