disk: Remove check which is always false
Type unsigned long long int according to C99 can store at least 2^64-1.
This commit is contained in:
1 parent
87867a5904
commit
66ecce9a3d
1 file changed
-5
@@ -207,11 +207,6 @@ int disk_dump_dev(int fd, const char * file) {
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ( blksize > ULLONG_MAX ) {
|
|
||||||
ERROR("Block device is too big");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( blksize == 0 ) {
|
if ( blksize == 0 ) {
|
||||||
ERROR("Block device has zero size");
|
ERROR("Block device has zero size");
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in new issue
Block a user