Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: frontier: fix compiler warnings

Basically remove unused code and variables still hanging around.

Cc: David Taht <d@teklibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

-60
-24
drivers/staging/frontier/alphatrack.c
··· 100 100 /* Use our own dbg macro */ 101 101 #define dbg_info(dev, format, arg...) do { if (debug) dev_info(dev , format , ## arg); } while (0) 102 102 103 - #if 0 104 - #define alphatrack_ocmd_info(dev, cmd, format, arg...) do { if (debug) ocmd_info(dev , cmd , format, ## arg); } while (0) 105 - 106 - #define alphatrack_icmd_info(dev, cmd, format, arg...) do { if (debug) icmd_info(dev , cmd, format, ## arg); } while (0) 107 - #else 108 103 #define alphatrack_ocmd_info(dev, cmd, format, arg...) 109 104 110 105 #define alphatrack_icmd_info(dev, cmd, format, arg...) 111 106 112 - #endif 113 107 114 108 /* Module parameters */ 115 109 ··· 191 197 192 198 static struct usb_driver usb_alphatrack_driver; 193 199 194 - static void icmd_info(struct usb_alphatrack *dev, char *cmd, char *str, char *a) { 195 - /* 196 - if (dev->verbose) { 197 - } else { 198 - } 199 - */ 200 - } 201 - 202 - static void ocmd_info(struct usb_alphatrack *dev, char *cmd, char *str, char* a) { 203 - /* 204 - if (dev->verbose) { 205 - } else { 206 - } 207 - */ 208 - } 209 - 210 - 211 200 /** 212 201 * usb_alphatrack_abort_transfers 213 202 * aborts transfers and frees associated data structures ··· 231 254 struct usb_alphatrack *dev = urb->context; 232 255 unsigned int next_ring_head; 233 256 int retval = -1; 234 - int *iptr; 235 257 236 258 if (urb->status) { 237 259 if (urb->status == -ENOENT ||
-25
drivers/staging/frontier/alphatrack.h
··· 39 39 LIGHT_LOOP 40 40 }; 41 41 42 - static const char *Lightname[] = { "eq", 43 - "out", 44 - "f2", 45 - "send", 46 - "in", 47 - "f1", 48 - "pan", 49 - "undef1", 50 - "undef2", 51 - "shift", 52 - "mute", 53 - "tracksolo", 54 - "trackrec", 55 - "read", 56 - "write", 57 - "anysolo", 58 - "auto", 59 - "f4", 60 - "record", 61 - "window", 62 - "plugin", 63 - "f3", 64 - "loop", 65 - NULL }; 66 - 67 42 #define BUTTONMASK_BATTERY 0x00004000 68 43 #define BUTTONMASK_BACKLIGHT 0x00008000 69 44 #define BUTTONMASK_FASTFORWARD 0x04000000
-11
drivers/staging/frontier/tranzport.c
··· 138 138 LightPunch 139 139 }; 140 140 141 - static const char *Lightname[8] = { "LightRecord", 142 - "LightTracrec", 143 - "LightTrackmute", 144 - "LightTrackSolo", 145 - "LightAnySolo", 146 - "LightLoop", 147 - "LightPunch", 148 - NULL }; 149 - 150 - 151 141 /* Structure to hold all of our device specific stuff */ 152 142 153 143 struct usb_tranzport { ··· 564 574 loff_t *ppos) 565 575 { 566 576 struct usb_tranzport *dev; 567 - size_t bytes_to_read; 568 577 int retval = 0; 569 578 570 579 #if BUFFERED_READS