diff --git a/src/common/udev.c b/src/common/udev.c index 2935e61..a759f26 100644 --- a/src/common/udev.c +++ b/src/common/udev.c @@ -166,7 +166,6 @@ long get_l3_cache_size(uint32_t core) { } int get_num_caches_from_files(char** paths, int num_paths) { - int SHARED_MAP_MAX_LEN = 8 + 1; int filelen; char* buf; uint32_t* shared_maps = emalloc(sizeof(uint32_t *) * num_paths); @@ -178,11 +177,6 @@ int get_num_caches_from_files(char** paths, int num_paths) { return -1; } - if(filelen > SHARED_MAP_MAX_LEN) { - printBug("Shared map length is %d while the max is be %d", filelen, SHARED_MAP_MAX_LEN); - return -1; - } - char* end; errno = 0; long ret = strtol(buf, &end, 16);