diff options
author | Sean Anderson <seanga2@gmail.com> | 2022-01-15 17:25:00 -0500 |
---|---|---|
committer | Sean Anderson <seanga2@gmail.com> | 2022-03-30 13:02:55 -0400 |
commit | b2e0889abacfd453131359156fe279996727d95b (patch) | |
tree | e996e7c3fe0ce63ae9c555760e62331849629847 | |
parent | 454af567edc0b02842c83aaf1a60bbcb766af0cd (diff) | |
download | u-boot-b2e0889abacfd453131359156fe279996727d95b.zip u-boot-b2e0889abacfd453131359156fe279996727d95b.tar.gz u-boot-b2e0889abacfd453131359156fe279996727d95b.tar.bz2 |
net: bcm63xx: Don't check clk_free
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-4-seanga2@gmail.com
-rw-r--r-- | drivers/net/bcm6348-eth.c | 6 | ||||
-rw-r--r-- | drivers/net/bcm6368-eth.c | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/drivers/net/bcm6348-eth.c b/drivers/net/bcm6348-eth.c index aad7b61..06e0dd7 100644 --- a/drivers/net/bcm6348-eth.c +++ b/drivers/net/bcm6348-eth.c @@ -461,11 +461,7 @@ static int bcm6348_eth_probe(struct udevice *dev) return ret; } - ret = clk_free(&clk); - if (ret < 0) { - pr_err("%s: error freeing clock %d\n", __func__, i); - return ret; - } + clk_free(&clk); } /* try to perform resets */ diff --git a/drivers/net/bcm6368-eth.c b/drivers/net/bcm6368-eth.c index 29abe7f..c2a8b9f 100644 --- a/drivers/net/bcm6368-eth.c +++ b/drivers/net/bcm6368-eth.c @@ -546,11 +546,7 @@ static int bcm6368_eth_probe(struct udevice *dev) return ret; } - ret = clk_free(&clk); - if (ret < 0) { - pr_err("%s: error freeing clock %d\n", __func__, i); - return ret; - } + clk_free(&clk); } /* try to perform resets */ |