Commit 52cebda1 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Georgi Djakov
Browse files

interconnect: Remove a useless kfree_const() usage



"path->name" is allocated in of_icc_get_by_index() using kasprintf(), so
there is no point in using kfree_const() to free it.

Switch to the more standard kfree() to free this.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/06630f9ec3e153d0e7773b8d97a17e7c53e0d606.1727375615.git.christophe.jaillet@wanadoo.fr


Signed-off-by: default avatarGeorgi Djakov <djakov@kernel.org>
parent 326b42d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -808,7 +808,7 @@ void icc_put(struct icc_path *path)
	mutex_unlock(&icc_bw_lock);
	mutex_unlock(&icc_lock);

	kfree_const(path->name);
	kfree(path->name);
	kfree(path);
}
EXPORT_SYMBOL_GPL(icc_put);