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.
Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature