diff options
author | 2009-10-07 20:05:06 +0200 | |
---|---|---|
committer | 2009-10-09 13:52:05 -0700 | |
commit | e63e278b4d2d867893962d3c7cd13a3a24ceb3f1 (patch) | |
tree | 356dffc7b4eb65e7052e58aabf523363e37867c1 /lib/dma-debug.c | |
parent | USB: ftdi_sio: remove unused rx_byte counter (diff) | |
download | linux-dev-e63e278b4d2d867893962d3c7cd13a3a24ceb3f1.tar.xz linux-dev-e63e278b4d2d867893962d3c7cd13a3a24ceb3f1.zip |
USB: ftdi_sio: clean up read completion handler
Remove superfluous error checks in completion handler:
- No need to check private data and urb pointers as we check urb-status
before dereferencing priv (which is not freed until urb has been killed
on close).
- No need to check tty as it is checked again when processing.
- No need to check urb->number_of_packets on bulk urb.
Note that both private data and tty are checked again before processing
(possibly from work queue which also is cancelled on close).
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions