diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 19:46:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 19:46:58 -0400 |
commit | 9374430a52dfae5c013b88f7f030c04a6774d410 (patch) | |
tree | ce1ee8eee4e79fbb9486e810278d1092afc74a44 /drivers/usb/serial/empeg.c | |
parent | 66f49739fe1591197364f2dad1b67b975e8f5e85 (diff) | |
parent | 13f9966b3ba5b45f47f2ea0eb0a90afceedfbb1f (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6: (149 commits)
USB: ohci-pnx4008: Remove unnecessary cast of return value of kzalloc
USB: additions to the quirk list
usb-storage: implement autosuspend
USB: cdc-acm: add new device id to option driver
USB: goku_udc trivial cleanups
USB: usb gadget stack can now -DDEBUG with Kconfig
usb gadget stack: remove usb_ep_*_buffer(), part 2
usb gadget stack: remove usb_ep_*_buffer(), part 1
USB: pxa2xx_udc -- cleanups, mostly removing dma hooks
USB: pxa2xx_udc: use generic gpio layer
USB: quirk for samsung printer
USB: usb/dma doc updates
USB: drivers/usb/storage/unusual_devs.h whitespace cleanup
USB: remove Makefile reference to obsolete OHCI_AT91
USB: io_*: remove bogus termios no change checks
USB: mos7720: remove bogus no termios change check
USB: visor and whiteheat: remove bogus termios change checks
USB: pl2303: remove bogus checks and fix speed support to use tty_get_baud_rate()
USB: mos7840.c: turn this into a serial driver
USB: make the usb_device numa_node get assigned from controller
...
Diffstat (limited to 'drivers/usb/serial/empeg.c')
-rw-r--r-- | drivers/usb/serial/empeg.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/usb/serial/empeg.c b/drivers/usb/serial/empeg.c index 4703c8f85383..050fcc996f56 100644 --- a/drivers/usb/serial/empeg.c +++ b/drivers/usb/serial/empeg.c | |||
@@ -326,12 +326,14 @@ static int empeg_chars_in_buffer (struct usb_serial_port *port) | |||
326 | 326 | ||
327 | static void empeg_write_bulk_callback (struct urb *urb) | 327 | static void empeg_write_bulk_callback (struct urb *urb) |
328 | { | 328 | { |
329 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 329 | struct usb_serial_port *port = urb->context; |
330 | int status = urb->status; | ||
330 | 331 | ||
331 | dbg("%s - port %d", __FUNCTION__, port->number); | 332 | dbg("%s - port %d", __FUNCTION__, port->number); |
332 | 333 | ||
333 | if (urb->status) { | 334 | if (status) { |
334 | dbg("%s - nonzero write bulk status received: %d", __FUNCTION__, urb->status); | 335 | dbg("%s - nonzero write bulk status received: %d", |
336 | __FUNCTION__, status); | ||
335 | return; | 337 | return; |
336 | } | 338 | } |
337 | 339 | ||
@@ -345,11 +347,13 @@ static void empeg_read_bulk_callback (struct urb *urb) | |||
345 | struct tty_struct *tty; | 347 | struct tty_struct *tty; |
346 | unsigned char *data = urb->transfer_buffer; | 348 | unsigned char *data = urb->transfer_buffer; |
347 | int result; | 349 | int result; |
350 | int status = urb->status; | ||
348 | 351 | ||
349 | dbg("%s - port %d", __FUNCTION__, port->number); | 352 | dbg("%s - port %d", __FUNCTION__, port->number); |
350 | 353 | ||
351 | if (urb->status) { | 354 | if (status) { |
352 | dbg("%s - nonzero read bulk status received: %d", __FUNCTION__, urb->status); | 355 | dbg("%s - nonzero read bulk status received: %d", |
356 | __FUNCTION__, status); | ||
353 | return; | 357 | return; |
354 | } | 358 | } |
355 | 359 | ||