if (g_udev_device_get_property_as_boolean (device, "ID_ATA"))
{
const gchar *model;
- const gchar *serial;
model = g_udev_device_get_property (device, "ID_MODEL_ENC");
if (model != NULL)
udisks_drive_set_vendor (iface, g_udev_device_get_property (device, ""));
udisks_drive_set_revision (iface, g_udev_device_get_property (device, "ID_REVISION"));
- serial = g_udev_device_get_property (device, "ID_SERIAL_SHORT");
- if (serial == NULL)
- serial = g_udev_device_get_property (device, "ID_SERIAL");
- udisks_drive_set_serial (iface, serial);
+ udisks_drive_set_serial (iface, g_udev_device_get_property (device, "ID_SERIAL_SHORT"));
udisks_drive_set_wwn (iface, g_udev_device_get_property (device, "ID_WWN_WITH_EXTENSION"));
}
else if (g_udev_device_get_property_as_boolean (device, "ID_SCSI"))
}
udisks_drive_set_revision (iface, g_udev_device_get_property (device, "ID_REVISION"));
- if (g_udev_device_has_property (device, "ID_SERIAL_SHORT"))
- udisks_drive_set_serial (iface, g_udev_device_get_property (device, "ID_SERIAL_SHORT"));
- else
- udisks_drive_set_serial (iface, g_udev_device_get_property (device, "ID_SERIAL"));
+ udisks_drive_set_serial (iface, g_udev_device_get_property (device, "ID_SERIAL_SHORT"));
if (g_udev_device_has_property (device, "ID_WWN_WITH_EXTENSION"))
udisks_drive_set_wwn (iface, g_udev_device_get_property (device, "ID_WWN_WITH_EXTENSION"));
else