]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
can: peak_usb: pcan_usb_{,pro}_get_device_id(): remove unneeded check for device_id
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 5 Apr 2021 11:49:45 +0000 (13:49 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 13 Apr 2021 08:15:43 +0000 (10:15 +0200)
commit426718f3fe0e4315d36edf88f11748d118558acc
treec589a326bc150d0b4e892c639f4eddee4051110b
parent592bf5a09d195e70652bed4187254c540e7cca9e
can: peak_usb: pcan_usb_{,pro}_get_device_id(): remove unneeded check for device_id

The callback struct peak_usb_adapter::dev_get_device_id, which is
implemented by the functions pcan_usb_{,pro}_get_device_id() is only
ever called with a valid device_id pointer.

This patch removes the unneeded check if the device_id pointer is
valid.

Link: https://lore.kernel.org/r/20210406111622.1874957-7-mkl@pengutronix.de
Acked-by: Stephane Grosjean <s.grosjean@peak-system.com>
Tested-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/peak_usb/pcan_usb.c
drivers/net/can/usb/peak_usb/pcan_usb_pro.c