mei: me: remove unnecessary NULL pointer checks
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 29 Feb 2024 18:13:00 +0000 (12:13 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2024 14:28:02 +0000 (14:28 +0000)
commite37db17dae6113f8f0b620753de5a1f9cb482771
tree6dcc07254c685968f46d2ce105588bb10ea11016
parent64386d1588f53ccde07cfeb04cddf2f6d1a75a40
mei: me: remove unnecessary NULL pointer checks

The .shutdown(), .remove(), and power management callbacks are never called
unless .probe() has already returned success, which means it has set
drvdata to a non-NULL pointer, so "dev" can never be NULL in the other
callbacks.

Remove the unnecessary checks.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20240229181300.352077-4-helgaas@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/pci-me.c