summaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-09-29 21:52:12 +0200
committerAndes <uboot@andestech.com>2020-10-26 09:27:13 +0800
commit8bb7496ef9188493b548ceb03b741b8f6465c339 (patch)
tree6244e07138c33bd0180d24c610c3477bb194ed4f /drivers/clk
parentc99e87f82803500f9811b1e98926d9d25df35b38 (diff)
downloadu-boot-8bb7496ef9188493b548ceb03b741b8f6465c339.tar.gz
clk: kendryte: no need to check argument of free()
free() checks if its argument is NULL. No need to check it twice. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Sean Anderson <seanga2@gmail.com>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/kendryte/clk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clk/kendryte/clk.c b/drivers/clk/kendryte/clk.c
index bb196961af..4b959401a6 100644
--- a/drivers/clk/kendryte/clk.c
+++ b/drivers/clk/kendryte/clk.c
@@ -471,8 +471,7 @@ cleanup_gate:
cleanup_div:
free(div);
cleanup_mux:
- if (mux)
- free(mux);
+ free(mux);
return comp;
}