USB: io_ti.c: remove unneeded null tty check
authorRay Lee <ray-lk@madrabbit.org>
Tue, 4 Mar 2008 23:25:12 +0000 (15:25 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Apr 2008 04:16:40 +0000 (21:16 -0700)
commitb56394bf325820e9f338eaef2941f18b17b98098
tree46a38ee7583d5341ec69d257029218e805fb3ccb
parentdfa5ec79d28300b0d1fdeafbeebf0a6b721edc38
USB: io_ti.c: remove unneeded null tty check

The Coverity checker (and Adrian Bunk) spotted an inconsistent NULL check of
port->tty (it's blindly dereferenced later without the check).

Alan Cox confirmed the check can go.

Signed-off-by: Ray Lee <ray-lk@madrabbit.org>
Cc: Adrian Bunk <bunk@kernel.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/io_ti.c