From 2358051d3632430f6d397bc56f573305c1aacea1 Mon Sep 17 00:00:00 2001 From: Alexander Aksenov Date: Wed, 6 Feb 2013 17:53:45 +0400 Subject: [PATCH] One more fix sparse warnings in probes.c --- driver/probes.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/driver/probes.c b/driver/probes.c index 7d242c3..9bc8a2f 100644 --- a/driver/probes.c +++ b/driver/probes.c @@ -56,17 +56,3 @@ const char *ec_probe_name[] = { "rq_profile", "pid_rq_profile" }; - -//TODO: the same function should be used from utils.cpp -static int name2index (unsigned *p_index, unsigned count, const char **names, const char *name) -{ - unsigned index; - for (index = 0; index < count; ++index) { - if (!strcmp (names[index], name)) { - *p_index = index; - return 0; - } - } - return -EINVAL; -} - -- 2.7.4