diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-09-26 20:33:49 +0200 |
---|---|---|
committer | Georgi Djakov <djakov@kernel.org> | 2024-10-22 10:17:24 +0200 |
commit | 52cebda10430bc3cfb91ae93be10c5050979f525 (patch) | |
tree | 3d59c57b85889c1883f43b37514bae7efd51f0c5 /drivers/interconnect | |
parent | interconnect: qcom: msm8937: constify pointer to qcom_icc_node (diff) | |
download | linux-52cebda10430bc3cfb91ae93be10c5050979f525.tar.xz linux-52cebda10430bc3cfb91ae93be10c5050979f525.zip |
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: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/06630f9ec3e153d0e7773b8d97a17e7c53e0d606.1727375615.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'drivers/interconnect')
-rw-r--r-- | drivers/interconnect/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c index 7e9b996b47c8..8a993283da82 100644 --- a/drivers/interconnect/core.c +++ b/drivers/interconnect/core.c @@ -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); |