mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 14:43:16 +00:00
usb-serial: remove NULL check
Julia Lawell found a case where a NULL check was misplaced in the usb-serial code. However as the object in question cannot be NULL the check can simply be removed. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
21b56ec4e9
commit
bf0672db79
@ -511,9 +511,6 @@ static void usb_serial_port_work(struct work_struct *work)
|
||||
|
||||
dbg("%s - port %d", __func__, port->number);
|
||||
|
||||
if (!port)
|
||||
return;
|
||||
|
||||
tty = tty_port_tty_get(&port->port);
|
||||
if (!tty)
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user