generic: misc fixes

This commit is contained in:
Dan Williams
2009-06-18 22:35:58 -04:00
parent 4eb2e75ca3
commit 832b43cab5

View File

@@ -31,7 +31,6 @@
#include "mm-plugin-generic.h" #include "mm-plugin-generic.h"
#include "mm-generic-gsm.h" #include "mm-generic-gsm.h"
#include "mm-generic-cdma.h" #include "mm-generic-cdma.h"
#include "mm-serial-port.h"
static void plugin_init (MMPlugin *plugin_class); static void plugin_init (MMPlugin *plugin_class);
@@ -253,13 +252,13 @@ grab_port (MMPlugin *plugin,
} }
driver = get_driver_name (device); driver = get_driver_name (device);
if (!devfile) { if (!driver) {
g_set_error (error, 0, 0, "Could not get port's driver name."); g_set_error (error, 0, 0, "Could not get port's driver name.");
goto out; goto out;
} }
sysfs_path = g_udev_device_get_sysfs_path (physdev); sysfs_path = g_udev_device_get_sysfs_path (physdev);
if (!devfile) { if (!sysfs_path) {
g_set_error (error, 0, 0, "Could not get port's physical device sysfs path."); g_set_error (error, 0, 0, "Could not get port's physical device sysfs path.");
goto out; goto out;
} }