diff options
author | Olivier Sobrie <olivier@sobrie.be> | 2014-07-14 06:08:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-14 22:27:34 -0400 |
commit | 5c763edfe4879ffc3a87fef64f743d4b5497aabb (patch) | |
tree | 0ed2fa020fafa3cdfab97a967f96a928b9cb2534 /drivers/net | |
parent | 3916a3192793fd3c11f69d623ef0cdbdbf9ea10a (diff) |
hso: remove unused workqueue
The workqueue "retry_unthrottle_workqueue" is not scheduled anywhere
in the code. So, remove it.
Signed-off-by: Olivier Sobrie <olivier@sobrie.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/usb/hso.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index a3a05869309d..9ca2b418a3ee 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c | |||
@@ -261,7 +261,6 @@ struct hso_serial { | |||
261 | u16 curr_rx_urb_offset; | 261 | u16 curr_rx_urb_offset; |
262 | u8 rx_urb_filled[MAX_RX_URBS]; | 262 | u8 rx_urb_filled[MAX_RX_URBS]; |
263 | struct tasklet_struct unthrottle_tasklet; | 263 | struct tasklet_struct unthrottle_tasklet; |
264 | struct work_struct retry_unthrottle_workqueue; | ||
265 | }; | 264 | }; |
266 | 265 | ||
267 | struct hso_device { | 266 | struct hso_device { |
@@ -1252,14 +1251,6 @@ static void hso_unthrottle(struct tty_struct *tty) | |||
1252 | tasklet_hi_schedule(&serial->unthrottle_tasklet); | 1251 | tasklet_hi_schedule(&serial->unthrottle_tasklet); |
1253 | } | 1252 | } |
1254 | 1253 | ||
1255 | static void hso_unthrottle_workfunc(struct work_struct *work) | ||
1256 | { | ||
1257 | struct hso_serial *serial = | ||
1258 | container_of(work, struct hso_serial, | ||
1259 | retry_unthrottle_workqueue); | ||
1260 | hso_unthrottle_tasklet(serial); | ||
1261 | } | ||
1262 | |||
1263 | /* open the requested serial port */ | 1254 | /* open the requested serial port */ |
1264 | static int hso_serial_open(struct tty_struct *tty, struct file *filp) | 1255 | static int hso_serial_open(struct tty_struct *tty, struct file *filp) |
1265 | { | 1256 | { |
@@ -1295,8 +1286,6 @@ static int hso_serial_open(struct tty_struct *tty, struct file *filp) | |||
1295 | tasklet_init(&serial->unthrottle_tasklet, | 1286 | tasklet_init(&serial->unthrottle_tasklet, |
1296 | (void (*)(unsigned long))hso_unthrottle_tasklet, | 1287 | (void (*)(unsigned long))hso_unthrottle_tasklet, |
1297 | (unsigned long)serial); | 1288 | (unsigned long)serial); |
1298 | INIT_WORK(&serial->retry_unthrottle_workqueue, | ||
1299 | hso_unthrottle_workfunc); | ||
1300 | result = hso_start_serial_device(serial->parent, GFP_KERNEL); | 1289 | result = hso_start_serial_device(serial->parent, GFP_KERNEL); |
1301 | if (result) { | 1290 | if (result) { |
1302 | hso_stop_serial_device(serial->parent); | 1291 | hso_stop_serial_device(serial->parent); |
@@ -1345,7 +1334,6 @@ static void hso_serial_close(struct tty_struct *tty, struct file *filp) | |||
1345 | if (!usb_gone) | 1334 | if (!usb_gone) |
1346 | hso_stop_serial_device(serial->parent); | 1335 | hso_stop_serial_device(serial->parent); |
1347 | tasklet_kill(&serial->unthrottle_tasklet); | 1336 | tasklet_kill(&serial->unthrottle_tasklet); |
1348 | cancel_work_sync(&serial->retry_unthrottle_workqueue); | ||
1349 | } | 1337 | } |
1350 | 1338 | ||
1351 | if (!usb_gone) | 1339 | if (!usb_gone) |