diff --git a/src/topology/parser.c b/src/topology/parser.c index 01c95afa..e70173f6 100644 --- a/src/topology/parser.c +++ b/src/topology/parser.c @@ -21,25 +21,6 @@ #include "list.h" #include "tplg_local.h" -/* - * Safe strtol call - */ -int safe_strtol_base(const char *str, long *val, int base) -{ - char *end; - long v; - if (!*str) - return -EINVAL; - errno = 0; - v = strtol(str, &end, base); - if (errno) - return -errno; - if (*end) - return -EINVAL; - *val = v; - return 0; -} - /* * Get integer value */