Unverified Commit d294e99c authored by ye xingchen's avatar ye xingchen Committed by Mark Brown
Browse files

spi: pxa2xx: Remove the unneeded result variable



Return the value clk_prepare_enable() directly instead of storing it in
another redundant variable.

Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarye xingchen <ye.xingchen@zte.com.cn>
Link: https://lore.kernel.org/r/20220825072828.229294-1-ye.xingchen@zte.com.cn


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 1a09e0e8
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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