aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/io_edgeport.c
diff options
context:
space:
mode:
authorUwe Kleine-König <uwe@kleine-koenig.org>2021-02-08 15:31:48 +0100
committerJohan Hovold <johan@kernel.org>2021-02-09 13:13:16 +0100
commita54af1b7d667927162d13083a8e2d470fb8722e2 (patch)
tree88e1b7192ece21b550e46ed94967a7487441b9ae /drivers/usb/serial/io_edgeport.c
parentUSB: serial: option: update interface mapping for ZTE P685M (diff)
downloadlinux-dev-a54af1b7d667927162d13083a8e2d470fb8722e2.tar.xz
linux-dev-a54af1b7d667927162d13083a8e2d470fb8722e2.zip
USB: serial: drop if with an always false condition
In a bus remove function the passed device is always valid, so there is no need to check for it being NULL. (Side note: The check for port being non-NULL is broken anyhow, because to_usb_serial_port() is a wrapper around container_of() for a member that is not the first one. So port can hardly become NULL.) Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org> Link: https://lore.kernel.org/r/20210208143149.963644-1-uwe@kleine-koenig.org Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/io_edgeport.c')
0 files changed, 0 insertions, 0 deletions