diff options
author | ye xingchen <ye.xingchen@zte.com.cn> | 2022-08-25 09:28:28 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-08-25 13:29:36 +0200 |
commit | d294e99cdc823f368530b8169e33a599fa2a1afe (patch) | |
tree | 8f2fb11e60c85408c0f38bc9fcd7d59f94186893 /drivers/spi/spi-pxa2xx.c | |
parent | spi: stm32_qspi: use QSPI bus as 8 lines communication channel (diff) | |
download | linux-d294e99cdc823f368530b8169e33a599fa2a1afe.tar.xz linux-d294e99cdc823f368530b8169e33a599fa2a1afe.zip |
spi: pxa2xx: Remove the unneeded result variable
Return the value clk_prepare_enable() 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/20220825072828.229294-1-ye.xingchen@zte.com.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-pxa2xx.c')
-rw-r--r-- | drivers/spi/spi-pxa2xx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 838d12e65144..986ffc4bf1ed 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -1873,10 +1873,8 @@ static int pxa2xx_spi_runtime_suspend(struct device *dev) static int pxa2xx_spi_runtime_resume(struct device *dev) { struct driver_data *drv_data = dev_get_drvdata(dev); - int status; - status = clk_prepare_enable(drv_data->ssp->clk); - return status; + return clk_prepare_enable(drv_data->ssp->clk); } #endif |