summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2017-01-09 22:56:33 +0100
committerPali Rohár <pali.rohar@gmail.com>2017-01-09 22:56:33 +0100
commit66ecce9a3d11cb21b687fa9711cedc8a4fa58230 (patch)
tree76a25bca5d9deab25635ba2288cb8ffc170b9f00
parent87867a590479c9cbd6dcff6d6ed40b6981102ee0 (diff)
download0xFFFF-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.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/disk.c b/src/disk.c
index 6bdd974..0b6b494 100644
--- a/src/disk.c
+++ b/src/disk.c
@@ -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;