[v1.02] Remove wrong check in udev

This commit is contained in:
Dr-Noob
2022-09-05 08:24:22 +02:00
parent 52ba038527
commit 758be60967

View File

@@ -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);