[PATCH] fix compilation of hald/freebsd/hf-storage.c
Aurelien Jarno
aurelien at aurel32.net
Mon May 11 14:20:53 PDT 2009
devname is not a variable available int the hf_storage_device_enable()
context, causing the build failure of this file. emove the line using
it seems g_return_if_fail(HAL_IS_DEVICE(device)) is already doing the
job.
---
hald/freebsd/hf-storage.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/hald/freebsd/hf-storage.c b/hald/freebsd/hf-storage.c
index 93239e5..b901d9d 100644
--- a/hald/freebsd/hf-storage.c
+++ b/hald/freebsd/hf-storage.c
@@ -644,7 +644,6 @@ void
hf_storage_device_enable (HalDevice *device)
{
g_return_if_fail(HAL_IS_DEVICE(device));
- g_return_if_fail(devname != NULL);
hal_device_property_set_string(device, "storage.bus", "platform");
hal_device_property_set_string(device, "storage.drive_type", "disk");
--
1.6.1.3
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien at aurel32.net http://www.aurel32.net
More information about the hal
mailing list