]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
HID: intel-ish-hid: Drop if block with an always false condition
authorUwe Kleine-König <uwe@kleine-koenig.org>
Sat, 6 Feb 2021 15:13:46 +0000 (16:13 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 8 Mar 2021 16:16:03 +0000 (17:16 +0100)
commit464956f75e9e26bcbbcbef435213e8f5fa854d07
treec12dfc39c6ada224e3cbabb1229565cc1a4a0cd5
parent69aea9d2843669387d100e353b5113d1adc9502f
HID: intel-ish-hid: Drop if block with an always false condition

A remove callback is only ever called for a bound device. So there is no
need to check for device or driver being NULL.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/intel-ish-hid/ishtp/bus.c