]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dma: bcm6348: Don't check clk_free
authorSean Anderson <seanga2@gmail.com>
Sat, 15 Jan 2022 22:24:59 +0000 (17:24 -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-3-seanga2@gmail.com
drivers/dma/bcm6348-iudma.c

index c04aa55cb42d0e6ef4db040dcaf6e193067fee66..4fc650272d9e918d4b4809ea06464b59b3490ce5 100644 (file)
@@ -596,11 +596,7 @@ static int bcm6348_iudma_probe(struct udevice *dev)
                        return ret;
                }
 
-               ret = clk_free(&clk);
-               if (ret < 0) {
-                       pr_err("error freeing clock %d\n", i);
-                       return ret;
-               }
+               clk_free(&clk);
        }
 
        /* try to perform resets */