aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-12-09 16:44:58 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:33 +0100
commit88cc35b850de43ce5068495324f163e7326f642a (patch)
treeb4d4aab8797b8accf2fd825a15dd699fbaeca9c9
parent68b0ac6e197649900e05ee53467699de12ba4809 (diff)
cinterion: ignore non-AT ports
-rw-r--r--plugins/mm-plugin-cinterion.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/mm-plugin-cinterion.c b/plugins/mm-plugin-cinterion.c
index d1e5fb76..0002846d 100644
--- a/plugins/mm-plugin-cinterion.c
+++ b/plugins/mm-plugin-cinterion.c
@@ -43,15 +43,14 @@ grab_port (MMPluginBase *base,
const gchar *name, *subsys, *driver;
guint16 vendor = 0, product = 0;
+ /* The Cinterion plugin cannot do anything with non-AT ports */
+ if (!mm_port_probe_is_at (probe)) {
+ g_set_error (error, 0, 0, "Ignoring non-AT port");
+ return NULL;
+ }
+
subsys = mm_port_probe_get_port_subsys (probe);
name = mm_port_probe_get_port_name (probe);
-
- /* /\* The generic plugin cannot do anything with non-AT ports *\/ */
- /* if (!mm_port_probe_is_at (probe)) { */
- /* g_set_error (error, 0, 0, "Ignoring non-AT port"); */
- /* return NULL; */
- /* } */
-
driver = mm_port_probe_get_port_driver (probe);
/* Try to get Product IDs from udev. Note that it is not an error