From: Sean Anderson Date: Sat, 15 Jan 2022 22:25:03 +0000 (-0500) Subject: spi: dw: Don't check clk_free X-Git-Tag: v2025.01-rc5-pxa1908~1478^2~5^2~4 X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/%7B%7B%20%24image.RelPermalink%20%7D%7D?a=commitdiff_plain;h=3cbdd4cab951b8bd3f2e76066e6911f9780c4eb1;p=u-boot.git spi: dw: Don't check clk_free This function always succeeds, so don't check its return value. Signed-off-by: Sean Anderson Link: https://lore.kernel.org/r/20220115222504.617013-7-seanga2@gmail.com --- diff --git a/drivers/spi/designware_spi.c b/drivers/spi/designware_spi.c index 47bea0b376..1c7d0ca310 100644 --- a/drivers/spi/designware_spi.c +++ b/drivers/spi/designware_spi.c @@ -732,7 +732,7 @@ static int dw_spi_remove(struct udevice *bus) if (ret) return ret; - ret = clk_free(&priv->clk); + clk_free(&priv->clk); if (ret) return ret; #endif