Skip to contentSkip to conversation

stm class: remove useless function

PATCH New Jiapeng Chong 1 participant 1 message Apr 13, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stm class: remove useless function

Fix the following clang warning:

drivers/hwtracing/stm/policy.c:60:21: warning: unused function 'stp_policy_node_name' [-Wunused-function].

---
 drivers/hwtracing/stm/policy.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/hwtracing/stm/policy.c +0 -5
index 603b4a99..42103c3 100644
@@ -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 ? : "<none>";
-}
-
 static inline struct stp_policy *to_stp_policy(struct config_item *item)
 {
 	return item ?
Signature · 1 line
1.8.3.1