From: Johan Hovold Date: Wed, 7 Oct 2009 18:05:06 +0000 (+0200) Subject: USB: ftdi_sio: clean up read completion handler X-Git-Tag: v2.6.32-rc4~4^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e63e278b4d2d867893962d3c7cd13a3a24ceb3f1;p=pandora-kernel.git 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 Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed