diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-07-31 15:29:08 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-07-31 15:29:08 +0200 |
commit | 56ac6ea29e1b9dfdad8c7b1875f81c242362da2a (patch) | |
tree | e467180119e9368bca5b957859bef4e82a906448 /sys/src/cmd/nusb/disk | |
parent | b1d4e860642d13805e47ee5cf9f373d8c97d0bc4 (diff) |
nusb/*: cleanup
Diffstat (limited to 'sys/src/cmd/nusb/disk')
-rw-r--r-- | sys/src/cmd/nusb/disk/disk.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/sys/src/cmd/nusb/disk/disk.c b/sys/src/cmd/nusb/disk/disk.c index dd7085a66..0e817fc62 100644 --- a/sys/src/cmd/nusb/disk/disk.c +++ b/sys/src/cmd/nusb/disk/disk.c @@ -1002,20 +1002,6 @@ usage(void) exits("usage"); } -static void -umsdevfree(void *a) -{ - Ums *ums = a; - - if(ums == nil) - return; - closedev(ums->epin); - closedev(ums->epout); - ums->epin = ums->epout = nil; - free(ums->lun); - free(ums); -} - /* * some devices like usb modems appear as mass storage * for windows driver installation. switch mode here @@ -1068,7 +1054,6 @@ main(int argc, char **argv) notreallyums(dev); ums = dev->aux = emallocz(sizeof(Ums), 1); ums->maxlun = -1; - dev->free = umsdevfree; if(findendpoints(ums) < 0) sysfatal("endpoints not found"); |