summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/pn533
diff options
context:
space:
mode:
authorUwe Kleine-König <uwe@kleine-koenig.org>2021-02-08 08:37:04 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-02-09 09:30:16 +0100
commitf320ff0387a8a2d3123c4f7d6d61eecc740d0466 (patch)
tree134efcac2be9103e7a9d113d23ee702c8f8324e3 /drivers/nfc/pn533
parent369aea84595189200a2e6b028f556a7efa0ec489 (diff)
downloadlinux-f320ff0387a8a2d3123c4f7d6d61eecc740d0466.tar.gz
linux-f320ff0387a8a2d3123c4f7d6d61eecc740d0466.tar.bz2
linux-f320ff0387a8a2d3123c4f7d6d61eecc740d0466.zip
mei: bus: simplify mei_cl_device_remove()
The driver core only calls a bus' remove function when there is actually a driver and a device. So drop the needless check and assign cldrv earlier. (Side note: The check for cldev being non-NULL is broken anyhow, because to_mei_cl_device() is a wrapper around container_of() for a member that is not the first one. So cldev only can become NULL if dev is (void *)0xc (for archs with 32 bit pointers) or (void *)0x18 (for archs with 64 bit pointers).) Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org> Link: https://lore.kernel.org/r/20210208073705.428185-2-uwe@kleine-koenig.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nfc/pn533')
0 files changed, 0 insertions, 0 deletions