Commit 014eac3e authored by ye xingchen's avatar ye xingchen Committed by Mark Brown

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: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarye xingchen <ye.xingchen@zte.com.cn>
Link: https://lore.kernel.org/r/20220908010429.342875-1-ye.xingchen@zte.com.cnSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5e0531f6
...@@ -947,11 +947,8 @@ static int fsl_lpspi_remove(struct platform_device *pdev) ...@@ -947,11 +947,8 @@ static int fsl_lpspi_remove(struct platform_device *pdev)
static int __maybe_unused fsl_lpspi_suspend(struct device *dev) static int __maybe_unused fsl_lpspi_suspend(struct device *dev)
{ {
int ret;
pinctrl_pm_select_sleep_state(dev); pinctrl_pm_select_sleep_state(dev);
ret = pm_runtime_force_suspend(dev); return pm_runtime_force_suspend(dev);
return ret;
} }
static int __maybe_unused fsl_lpspi_resume(struct device *dev) static int __maybe_unused fsl_lpspi_resume(struct device *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment