diff options
Diffstat (limited to 'src/dmidecode/util.c')
-rw-r--r-- | src/dmidecode/util.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/dmidecode/util.c b/src/dmidecode/util.c index 9eda714..b703b3a 100644 --- a/src/dmidecode/util.c +++ b/src/dmidecode/util.c @@ -105,7 +105,6 @@ void *mem_chunk(size_t base, size_t len, const char *devmem) if((fd=open(devmem, O_RDONLY))==-1) { - perror(devmem); return NULL; } @@ -129,8 +128,6 @@ void *mem_chunk(size_t base, size_t len, const char *devmem) mmp=mmap(0, mmoffset+len, PROT_READ, MAP_SHARED, fd, base-mmoffset); if(mmp==MAP_FAILED) { - fprintf(stderr, "%s: ", devmem); - perror("mmap"); free(p); return NULL; } |