From: ye xingchen Date: Thu, 25 Aug 2022 07:28:28 +0000 (+0000) Subject: spi: pxa2xx: Remove the unneeded result variable X-Git-Tag: v6.1-rc5~19^2~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d294e99cdc823f368530b8169e33a599fa2a1afe;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: ye xingchen Link: https://lore.kernel.org/r/20220825072828.229294-1-ye.xingchen@zte.com.cn Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 838d12e..986ffc4 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