Minor cleanup from Garrett Kajmowicz.
authorRob Landley <rob@landley.net>
Sat, 25 Feb 2006 03:36:00 +0000 (03:36 -0000)
committerRob Landley <rob@landley.net>
Sat, 25 Feb 2006 03:36:00 +0000 (03:36 -0000)
util-linux/fdisk.c

index 33ad84702852997e726d2e50988197e2b6e5e5a2..a64515598bb91e33fc1c00c1de13c4cc61fdbdee 100644 (file)
@@ -37,8 +37,6 @@
 
 #include "busybox.h"
 
-#define MAKE_VERSION(p,q,r)     (65536*(p) + 256*(q) + (r))
-
 #define DKTYPENAMES
 
 #define BLKRRPART  _IO(0x12,95)    /* re-read partition table */
@@ -3977,8 +3975,7 @@ create_doslabel(void)
 static void
 get_sectorsize(void)
 {
-       if (!user_set_sector_size
-        && get_kernel_revision() >= MAKE_VERSION(2,3,3)) {
+       if (!user_set_sector_size) {
                int arg;
                if (ioctl(fd, BLKSSZGET, &arg) == 0)
                        sector_size = arg;