From b9b95ea3c0a28abc62885658b0004a2ba5415bd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 28 Feb 2011 01:09:38 +0100 Subject: remove unused init_usb and ugly global variables --- libk8055/libk8055.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/libk8055/libk8055.c b/libk8055/libk8055.c index 7de3919..47bef5e 100644 --- a/libk8055/libk8055.c +++ b/libk8055/libk8055.c @@ -118,10 +118,6 @@ /* set debug to 0 to not print excess info */ int debug = 0; -/* variables for usb */ -static struct usb_bus *bus, *busses; -static struct usb_device *dev; - /* globals for datatransfer */ struct k8055_dev { unsigned char data_in[PACKET_LEN+1]; @@ -133,18 +129,6 @@ struct k8055_dev { static struct k8055_dev k8055d[K8055_MAX_DEV]; static struct k8055_dev *curr_dev; -/* Initialize the usb library - only once */ -static void init_usb(void) { - static int init_done = 0; - if (!init_done) { - usb_init(); - usb_find_busses(); - usb_find_devices(); - busses = usb_get_busses(); - init_done = 1; - } -} - /* Actual read of data from the device endpoint, retry READ_RETRY times if not responding ok */ static int k8055_read( struct k8055_dev* dev ) { if(dev->dev_no==0) return K8055_ERROR; -- cgit v1.1-2-g2b99