https://github.com/torvalds/linux
Revision e63e278b4d2d867893962d3c7cd13a3a24ceb3f1 authored by Johan Hovold on 07 October 2009, 18:05:06 UTC, committed by Greg Kroah-Hartman on 09 October 2009, 20:52:05 UTC
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>

1 parent 63b0061
History
Tip revision: e63e278b4d2d867893962d3c7cd13a3a24ceb3f1 authored by Johan Hovold on 07 October 2009, 18:05:06 UTC
USB: ftdi_sio: clean up read completion handler
Tip revision: e63e278
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 952 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 154.4 KB
Makefile -rw-r--r-- 55.4 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top