[PATCH 2/3] coresight: core: Remove unnecessary assignment
Qi Liu
liuqi115 at huawei.com
Thu May 13 06:27:48 PDT 2021
From: Junhao He <hejunhao2 at hisilicon.com>
Remove unnecessary assignment of "path" in coresight_release_path().
Signed-off-by: Junhao He <hejunhao2 at hisilicon.com>
Signed-off-by: Qi Liu <liuqi115 at huawei.com>
---
drivers/hwtracing/coresight/coresight-core.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/hwtracing/coresight/coresight-core.c b/drivers/hwtracing/coresight/coresight-core.c
index 4ddf3d2..d75b19a 100644
--- a/drivers/hwtracing/coresight/coresight-core.c
+++ b/drivers/hwtracing/coresight/coresight-core.c
@@ -886,7 +886,6 @@ void coresight_release_path(struct list_head *path)
}
kfree(path);
- path = NULL;
}
/* return true if the device is a suitable type for a default sink */
--
2.7.4
More information about the linux-arm-kernel
mailing list