]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Staging: frontier: fix compiler warnings
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 18 Dec 2008 01:20:23 +0000 (17:20 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 21:52:36 +0000 (13:52 -0800)
Basically remove unused code and variables still hanging around.

Cc: David Taht <d@teklibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/frontier/alphatrack.c
drivers/staging/frontier/alphatrack.h
drivers/staging/frontier/tranzport.c

index 028873e70fe9bc47b2e4281ab296f9e225661747..61d7c5df87af3727dfd919df0f68325782286656 100644 (file)
@@ -100,16 +100,10 @@ static int debug = 0;
 /* Use our own dbg macro */
 #define dbg_info(dev, format, arg...) do { if (debug) dev_info(dev , format , ## arg); } while (0)
 
-#if 0
-#define alphatrack_ocmd_info(dev, cmd, format, arg...) do { if (debug) ocmd_info(dev , cmd , format, ## arg); } while (0)
-
-#define alphatrack_icmd_info(dev, cmd, format, arg...) do { if (debug) icmd_info(dev , cmd, format, ## arg); } while (0)
-#else
 #define alphatrack_ocmd_info(dev, cmd, format, arg...)
 
 #define alphatrack_icmd_info(dev, cmd, format, arg...)
 
-#endif
 
 /* Module parameters */
 
@@ -197,23 +191,6 @@ static DEFINE_MUTEX(disconnect_mutex);
 
 static struct usb_driver usb_alphatrack_driver;
 
-static void icmd_info(struct usb_alphatrack *dev, char *cmd, char *str, char *a) {
-/*
-if (dev->verbose) {
-} else {
-}
-*/
-}
-
-static void ocmd_info(struct usb_alphatrack *dev, char *cmd, char *str, char* a) {
-/*
-if (dev->verbose) {
-} else {
-}
-*/
-}
-
-
 /**
  *     usb_alphatrack_abort_transfers
  *      aborts transfers and frees associated data structures
@@ -254,7 +231,6 @@ static void usb_alphatrack_interrupt_in_callback(struct urb *urb)
        struct usb_alphatrack *dev = urb->context;
        unsigned int next_ring_head;
        int retval = -1;
-       int *iptr;
 
        if (urb->status) {
                if (urb->status == -ENOENT ||
index 3dd7d54f49a85c3ed4675088b40f226d2f65067c..35c90a90eb084ed700fb5543be8904b8f3a05ffe 100644 (file)
@@ -39,31 +39,6 @@ enum LightID {
         LIGHT_LOOP
 };
 
-static const char *Lightname[] = { "eq",
-"out",
-"f2",
-"send",
-"in",
-"f1",
-"pan",
-"undef1",
-"undef2",
-"shift",
-"mute",
-"tracksolo",
-"trackrec",
-"read",
-"write",
-"anysolo",
-"auto",
-"f4",
-"record",
-"window",
-"plugin",
-"f3",
-"loop",
-NULL };
-
 #define BUTTONMASK_BATTERY     0x00004000
 #define BUTTONMASK_BACKLIGHT   0x00008000
 #define BUTTONMASK_FASTFORWARD 0x04000000
index 32d9c5084c888ab7bbf155be1234aa8b4d16b11c..275faa76238856ed154d45dd46df47c621da27d1 100644 (file)
@@ -138,16 +138,6 @@ enum LightID {
        LightPunch
        };
 
-static const char *Lightname[8] = { "LightRecord",
-                                                                                                                                               "LightTracrec",
-                                                                                                                                               "LightTrackmute",
-                                                                                                                                               "LightTrackSolo",
-                                                                                                                                               "LightAnySolo",
-                                                                                                                                               "LightLoop",
-                                                                                                                                               "LightPunch",
-                                                                                                                                               NULL };
-
-
 /* Structure to hold all of our device specific stuff */
 
 struct usb_tranzport {
@@ -574,7 +564,6 @@ static ssize_t usb_tranzport_read(struct file *file, char __user *buffer, size_t
                           loff_t *ppos)
 {
        struct usb_tranzport *dev;
-       size_t bytes_to_read;
        int retval = 0;
 
 #if BUFFERED_READS