From: Jiapeng Chong Date: Wed, 14 Apr 2021 17:12:45 +0000 (+0300) Subject: stm class: Remove an unused function X-Git-Tag: v5.13-rc1~175^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3fae829eac71a1a1e3265337b3d25eaf80d41d9b;p=thirdparty%2Flinux.git stm class: Remove an unused function Fix the following clang warning: drivers/hwtracing/stm/policy.c:60:21: warning: unused function 'stp_policy_node_name' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong Signed-off-by: Alexander Shishkin Reviewed-by: Andy Shevchenko Link: https://lore.kernel.org/r/20210414171251.14672-2-alexander.shishkin@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hwtracing/stm/policy.c b/drivers/hwtracing/stm/policy.c index 603b4a9969d3a..42103c3a177f9 100644 --- a/drivers/hwtracing/stm/policy.c +++ b/drivers/hwtracing/stm/policy.c @@ -57,11 +57,6 @@ void stp_policy_node_get_ranges(struct stp_policy_node *policy_node, *cend = policy_node->last_channel; } -static inline char *stp_policy_node_name(struct stp_policy_node *policy_node) -{ - return policy_node->group.cg_item.ci_name ? : ""; -} - static inline struct stp_policy *to_stp_policy(struct config_item *item) { return item ?