diff options
| author | Johan Hovold <[email protected]> | 2017-02-08 17:53:09 +0000 |
|---|---|---|
| committer | Johan Hovold <[email protected]> | 2017-02-08 20:20:49 +0000 |
| commit | 0e517c93dc027e49d4523fe32631606b12f0752d (patch) | |
| tree | 47100fb3e8ccfd7bc43b810e748debde700c722a /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | USB: serial: console: fix uninitialised spinlock (diff) | |
| download | kernel-0e517c93dc027e49d4523fe32631606b12f0752d.tar.gz kernel-0e517c93dc027e49d4523fe32631606b12f0752d.zip | |
USB: serial: console: clean up sanity checks
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 pointers are stored in an array that is a member
of the serial struct so the address of the first member of the array
(which the array name decays to) is never NULL either.
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions
