From 018a23891f98f4ffd220be2958a6a8920ef939be Mon Sep 17 00:00:00 2001 From: Mao Jinlong Date: Thu, 11 Aug 2022 04:03:58 -0700 Subject: [PATCH] coresight-core: Remove duplicate coresight_get_source Remove duplicate coresight_get_source function to fix the compile error. Change-Id: I0057958e48536f273790a03e152002d4d31f2497 Signed-off-by: Mao Jinlong --- drivers/hwtracing/coresight/coresight-core.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-core.c b/drivers/hwtracing/coresight/coresight-core.c index 96a83cf25bad..2eb6dfa3f4f4 100644 --- a/drivers/hwtracing/coresight/coresight-core.c +++ b/drivers/hwtracing/coresight/coresight-core.c @@ -670,20 +670,6 @@ int coresight_enable_path(struct list_head *path, u32 mode, void *sink_data) goto out; } -static struct coresight_device *coresight_get_source(struct list_head *path) -{ - struct coresight_device *csdev; - - if (!path) - return NULL; - - csdev = list_first_entry(path, struct coresight_node, link)->csdev; - if (csdev->type != CORESIGHT_DEV_TYPE_SOURCE) - return NULL; - - return csdev; -} - struct coresight_device *coresight_get_sink(struct list_head *path) { struct coresight_device *csdev;