[PATCH 2/2] USB: serial: console: clean up sanity checks

2017-02-08 Thread Johan Hovold
Drop two redundant NULL checks from usb_serial_console_disconnect(). The usb_serial_console_disconnect function is called from the USB-serial-device disconnect callback when a device is going away. Hence there is no need to check for the serial-device pointer being NULL. The serial-device port po

Re: [PATCH 2/2] USB: serial: console: clean up sanity checks

2017-02-08 Thread Greg KH
On Wed, Feb 08, 2017 at 06:53:09PM +0100, Johan Hovold wrote: > Drop two redundant NULL checks from usb_serial_console_disconnect(). > > The usb_serial_console_disconnect function is called from the > USB-serial-device disconnect callback when a device is going away. Hence > there is no need to ch