From 29c54aa9f9e8eedf2d227550a790e76661ce63ad Mon Sep 17 00:00:00 2001 From: Maksym Kryzhanovskyy Date: Sat, 7 May 2011 04:37:22 +0200 Subject: iostat: code shrink ~0.5k Signed-off-by: Maksym Kryzhanovskyy Signed-off-by: Denys Vlasenko --- e2fsprogs/old_e2fsprogs/blkid/blkid_getsize.c | 6 +++--- e2fsprogs/old_e2fsprogs/ext2fs/getsize.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'e2fsprogs/old_e2fsprogs') diff --git a/e2fsprogs/old_e2fsprogs/blkid/blkid_getsize.c b/e2fsprogs/old_e2fsprogs/blkid/blkid_getsize.c index 941efa42c..e1f6ba6d2 100644 --- a/e2fsprogs/old_e2fsprogs/blkid/blkid_getsize.c +++ b/e2fsprogs/old_e2fsprogs/blkid/blkid_getsize.c @@ -96,9 +96,9 @@ blkid_loff_t blkid_get_dev_size(int fd) #ifdef BLKGETSIZE64 #ifdef __linux__ - if ((uname(&ut) == 0) && - ((ut.release[0] == '2') && (ut.release[1] == '.') && - (ut.release[2] < '6') && (ut.release[3] == '.'))) + uname(&ut); + if ((ut.release[0] == '2') && (ut.release[1] == '.') && + (ut.release[2] < '6') && (ut.release[3] == '.')) valid_blkgetsize64 = 0; #endif if (valid_blkgetsize64 && diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/getsize.c b/e2fsprogs/old_e2fsprogs/ext2fs/getsize.c index ff11fe98c..ee4bbb7b0 100644 --- a/e2fsprogs/old_e2fsprogs/ext2fs/getsize.c +++ b/e2fsprogs/old_e2fsprogs/ext2fs/getsize.c @@ -174,9 +174,9 @@ errcode_t ext2fs_get_device_size(const char *file, int blocksize, #ifdef BLKGETSIZE64 #ifdef __linux__ - if ((uname(&ut) == 0) && - ((ut.release[0] == '2') && (ut.release[1] == '.') && - (ut.release[2] < '6') && (ut.release[3] == '.'))) + uname(&ut); + if ((ut.release[0] == '2') && (ut.release[1] == '.') && + (ut.release[2] < '6') && (ut.release[3] == '.')) valid_blkgetsize64 = 0; #endif if (valid_blkgetsize64 && -- cgit v1.2.3