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>
This commit is contained in:
ye xingchen 2022-08-25 07:28:28 +00:00 committed by Mark Brown
parent 1a09e0e8cf
commit d294e99cdc
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -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