diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2017-01-09 22:56:33 +0100 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2017-01-09 22:56:33 +0100 |
commit | 66ecce9a3d11cb21b687fa9711cedc8a4fa58230 (patch) | |
tree | 76a25bca5d9deab25635ba2288cb8ffc170b9f00 | |
parent | 87867a590479c9cbd6dcff6d6ed40b6981102ee0 (diff) | |
download | 0xFFFF-66ecce9a3d11cb21b687fa9711cedc8a4fa58230.tar.bz2 |
disk: Remove check which is always false
Type unsigned long long int according to C99 can store at least 2^64-1.
-rw-r--r-- | src/disk.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -207,11 +207,6 @@ int disk_dump_dev(int fd, const char * file) { #endif - if ( blksize > ULLONG_MAX ) { - ERROR("Block device is too big"); - return -1; - } - if ( blksize == 0 ) { ERROR("Block device has zero size"); return -1; |