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:
parent
1a09e0e8cf
commit
d294e99cdc
|
@ -1873,10 +1873,8 @@ static int pxa2xx_spi_runtime_suspend(struct device *dev)
|
||||||
static int pxa2xx_spi_runtime_resume(struct device *dev)
|
static int pxa2xx_spi_runtime_resume(struct device *dev)
|
||||||
{
|
{
|
||||||
struct driver_data *drv_data = dev_get_drvdata(dev);
|
struct driver_data *drv_data = dev_get_drvdata(dev);
|
||||||
int status;
|
|
||||||
|
|
||||||
status = clk_prepare_enable(drv_data->ssp->clk);
|
return clk_prepare_enable(drv_data->ssp->clk);
|
||||||
return status;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue