mei: gsc: remove unnecessary NULL pointer checks
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 29 Feb 2024 18:12:58 +0000 (12:12 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2024 14:28:02 +0000 (14:28 +0000)
commitd6543805a8ad6ffcddf5ffdfb3b27dcee3806474
treebe788b5b90e0c5af5a17038b806bea49611ff433
parente0014ce72e093901f1e9dfff9aea40eefa3ae930
mei: gsc: remove unnecessary NULL pointer checks

The .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-2-helgaas@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/gsc-me.c