summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorye xingchen <ye.xingchen@zte.com.cn>2022-09-08 04:04:29 +0300
committerMark Brown <broonie@kernel.org>2022-09-08 13:39:47 +0300
commit014eac3e93515ef37a794b1880340efd616d5768 (patch)
treec2980ff62bbabef284baa3bb417cda690846b6d2 /drivers/spi
parent5e0531f6b90ac096fedaf5bd0eae0bb4e5a39da5 (diff)
downloadlinux-014eac3e93515ef37a794b1880340efd616d5768.tar.xz
spi: lpspi: Remove the unneeded result variable
Return the value pm_runtime_force_suspend() directly instead of storing it in another redundant variable. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn> Link: https://lore.kernel.org/r/20220908010429.342875-1-ye.xingchen@zte.com.cn Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-fsl-lpspi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/spi/spi-fsl-lpspi.c b/drivers/spi/spi-fsl-lpspi.c
index cbbe8bbef90a..13147377b2d6 100644
--- a/drivers/spi/spi-fsl-lpspi.c
+++ b/drivers/spi/spi-fsl-lpspi.c
@@ -947,11 +947,8 @@ static int fsl_lpspi_remove(struct platform_device *pdev)
static int __maybe_unused fsl_lpspi_suspend(struct device *dev)
{
- int ret;
-
pinctrl_pm_select_sleep_state(dev);
- ret = pm_runtime_force_suspend(dev);
- return ret;
+ return pm_runtime_force_suspend(dev);
}
static int __maybe_unused fsl_lpspi_resume(struct device *dev)