Minor cleanup from Garrett Kajmowicz.

This commit is contained in:
Rob Landley 2006-02-25 03:36:00 +00:00
parent b73451daee
commit 736e52532e

View File

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