]> git.baikalelectronics.ru Git - uboot.git/commitdiff
spi: dw: Don't check clk_free
authorSean Anderson <seanga2@gmail.com>
Sat, 15 Jan 2022 22:25:03 +0000 (17:25 -0500)
committerSean Anderson <seanga2@gmail.com>
Wed, 30 Mar 2022 17:02:55 +0000 (13:02 -0400)
This function always succeeds, so don't check its return value.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Link: https://lore.kernel.org/r/20220115222504.617013-7-seanga2@gmail.com
drivers/spi/designware_spi.c

index 47bea0b376abccfe06ac6af17c3c86a75431e514..1c7d0ca310b6e8d0c37b23bf41b2e9dd36192a62 100644 (file)
@@ -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