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>
This commit is contained in:
committed by
Andes
parent
c99e87f828
commit
8bb7496ef9
@@ -471,8 +471,7 @@ cleanup_gate:
|
||||
cleanup_div:
|
||||
free(div);
|
||||
cleanup_mux:
|
||||
if (mux)
|
||||
free(mux);
|
||||
free(mux);
|
||||
return comp;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user