projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e0531f
)
spi: lpspi: Remove the unneeded result variable
author
ye xingchen
<ye.xingchen@zte.com.cn>
Thu, 8 Sep 2022 01:04:29 +0000
(
01:04
+0000)
committer
Mark Brown
<broonie@kernel.org>
Thu, 8 Sep 2022 10:39:47 +0000
(11:39 +0100)
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>
drivers/spi/spi-fsl-lpspi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-fsl-lpspi.c
b/drivers/spi/spi-fsl-lpspi.c
index
cbbe8bb
..
1314737
100644
(file)
--- 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)