soc: qcom: apr: Drop redundant check in .remove()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sat, 18 Jun 2022 20:39:13 +0000 (22:39 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 26 Jun 2022 03:01:02 +0000 (22:01 -0500)
commitbc0f149376894343839c4b156fa5653958fda496
tree5fa020b489c7f15c9a7eb946c3af42d18c2aad9b
parentc19698a9e41bd6cf6dc3be436ed625e5182343ca
soc: qcom: apr: Drop redundant check in .remove()

The remove callback is only called by the driver core if there is a
driver to unbind, so there is no need to check dev->driver to be
non-NULL.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220618203913.35785-1-u.kleine-koenig@pengutronix.de
drivers/soc/qcom/apr.c