[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH parted 3/3] linux: Remove PED_DEVICE_FILE check from _device_set_
From: |
Hans de Goede |
Subject: |
[PATCH parted 3/3] linux: Remove PED_DEVICE_FILE check from _device_set_sector_size |
Date: |
Mon, 11 Jan 2010 11:59:27 +0100 |
_device_set_sector_size never get called for devices with a type of
PED_DEVICE_FILE, and having a PED_DEVICE_FILE check inside an ifdef
__390__ block does not make sense.
* libparted/arch/linux.c(_device_set_sector_size): Remove
PED_DEVICE_FILE check.
---
libparted/arch/linux.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index b14c9ca..f3b54f0 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -674,8 +674,7 @@ _device_set_sector_size (PedDevice* dev)
#if defined __s390__ || defined __s390x__
/* Return PED_SECTOR_SIZE_DEFAULT for DASDs. */
- if (dev->type == PED_DEVICE_DASD
- || dev->type == PED_DEVICE_FILE) {
+ if (dev->type == PED_DEVICE_DASD) {
arch_specific->real_sector_size = dev->sector_size;
dev->sector_size = PED_SECTOR_SIZE_DEFAULT;
}
--
1.6.5.2