diff options
author | Dan Williams <dcbw@redhat.com> | 2009-06-29 22:50:37 -0400 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2009-06-29 22:50:37 -0400 |
commit | 2730fe4539b3ecde797078ba2dae6745a371a9e7 (patch) | |
tree | a0da9a93d2baa02050a1cfe9e37b2eb2d46fb0b7 | |
parent | 36ee982b61e5350d643cd7d8701d8f719b89509f (diff) |
moto-c: fix port grabbing; remove dead code
-rw-r--r-- | plugins/mm-plugin-moto-c.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/mm-plugin-moto-c.c b/plugins/mm-plugin-moto-c.c index a77e65a8..3e253613 100644 --- a/plugins/mm-plugin-moto-c.c +++ b/plugins/mm-plugin-moto-c.c @@ -102,6 +102,9 @@ grab_port (MMPluginBase *base, MMModem *modem = NULL; const char *name, *subsys, *devfile, *sysfs_path; + port = mm_plugin_base_supports_task_get_port (task); + g_assert (port); + devfile = g_udev_device_get_device_file (port); if (!devfile) { g_set_error (error, 0, 0, "Could not get port's sysfs file."); @@ -148,18 +151,10 @@ mm_plugin_moto_c_init (MMPluginMotoC *self) } static void -dispose (GObject *object) -{ -} - -static void mm_plugin_moto_c_class_init (MMPluginMotoCClass *klass) { - GObjectClass *object_class = G_OBJECT_CLASS (klass); MMPluginBaseClass *pb_class = MM_PLUGIN_BASE_CLASS (klass); - object_class->dispose = dispose; - pb_class->supports_port = supports_port; pb_class->grab_port = grab_port; } |