X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/3c6d0376edd06bad63e861415974556259f593cd..f6c113a5fb217e7495b93053cf29fa6966923445:/lincan/src/main.c diff --git a/lincan/src/main.c b/lincan/src/main.c index 0e9f2a5..f69009b 100644 --- a/lincan/src/main.c +++ b/lincan/src/main.c @@ -591,29 +591,15 @@ void cleanup_usbdev(struct candevice_t *dev) } #endif - for(i=0;ihostchip->hostdevice != dev) continue; - //canqueue_ends_done_chip(objects_p[i]->qends); - //can_checked_free(objects_p[i]->qends); - //can_checked_free(objects_p[i]); - objects_p[i]=NULL; - } - for(i=0;ihostdevice != dev) continue; - //can_checked_free(chips_p[i]->chipspecops); - //can_checked_free(chips_p[i]); chips_p[i]=NULL; } hardware_p->candevice[dev->candev_idx]=NULL; hardware_p->nr_boards--; - //kfree(hw[dev->candev_idx]); hw[dev->candev_idx]=NULL; - //can_checked_free(dev->hwspecops); - //can_checked_free(dev); candevice_done(dev); can_checked_free(dev);