aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-07-30 20:20:17 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-08-20 16:26:55 +0200
commit4e84cd241b7b41fe6f87242136b3f5ae857e5a13 (patch)
treea4ea3091feb40ec7a2f2f1c1128137c8bcf8e9f4
parent9512eda21d7392bcb80cfd4dae6708fb1c92907e (diff)
plugin: fix icera filters when using the allowed product string filter
-rw-r--r--src/mm-plugin.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mm-plugin.c b/src/mm-plugin.c
index c4f12e5c..d0b0a783 100644
--- a/src/mm-plugin.c
+++ b/src/mm-plugin.c
@@ -304,7 +304,6 @@ apply_post_probing_filters (MMPlugin *self,
MMPortProbe *probe)
{
gboolean vendor_filtered = FALSE;
- gboolean product_filtered = FALSE;
guint i;
/* The plugin may specify that only some vendor strings are supported. If
@@ -353,7 +352,7 @@ apply_post_probing_filters (MMPlugin *self,
/* If we didn't get any vendor or product: filtered */
if (!vendor || !product)
- product_filtered = TRUE;
+ return TRUE;
else {
for (i = 0; self->priv->product_strings[i].l; i++) {
gboolean found;
@@ -372,10 +371,10 @@ apply_post_probing_filters (MMPlugin *self,
/* If we didn't match any product: unsupported */
if (!self->priv->product_strings[i].l)
- product_filtered = TRUE;
+ return TRUE;
}
- return product_filtered;
+ /* Keep on with next filters */
}
/* The plugin may specify that only Icera-based modems are supported.