diff options
Diffstat (limited to 'driver/probes.c')
-rw-r--r-- | driver/probes.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/driver/probes.c b/driver/probes.c index 4d98b951..9bc8a2fd 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 -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; -} - |