From: Alan Cox Date: Sun, 11 Jan 2009 19:48:41 +0000 (+0000) Subject: usb-serial: remove NULL check X-Git-Tag: v2.6.29-rc2~98 X-Git-Url: http://pilppa.org/gitweb/?a=commitdiff_plain;h=bf0672db79c18ce38d1783be982051a718a0bc22;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Linus Torvalds --- diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 080ade223d5..cfcfd5ab06c 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c @@ -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;