From 832b43cab5e3cef6b755d8651fa4b715e3e63fd7 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 18 Jun 2009 22:35:58 -0400 Subject: generic: misc fixes --- plugins/mm-plugin-generic.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/mm-plugin-generic.c') diff --git a/plugins/mm-plugin-generic.c b/plugins/mm-plugin-generic.c index f504a6ee..1475a958 100644 --- a/plugins/mm-plugin-generic.c +++ b/plugins/mm-plugin-generic.c @@ -31,7 +31,6 @@ #include "mm-plugin-generic.h" #include "mm-generic-gsm.h" #include "mm-generic-cdma.h" -#include "mm-serial-port.h" static void plugin_init (MMPlugin *plugin_class); @@ -253,13 +252,13 @@ grab_port (MMPlugin *plugin, } driver = get_driver_name (device); - if (!devfile) { + if (!driver) { g_set_error (error, 0, 0, "Could not get port's driver name."); goto out; } 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."); goto out; } -- cgit v1.2.3-70-g09d2