Skip to content
Commit 1542d132 authored by Johan Hovold's avatar Johan Hovold
Browse files

USB: serial: drop bogus to_usb_serial_port() checks



The to_usb_serial_port() macro is implemented using container_of() so
there's no need to check for NULL.

Note that neither bus match() or probe() is ever called with a NULL
struct device pointer so the checks weren't just misplaced.

Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: default avatarUwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent c5d1448f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment