summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Nicoletti <dantti12@gmail.com>2012-06-18 10:47:16 -0300
committerRichard Hughes <richard@hughsie.com>2012-06-18 15:10:54 +0100
commit098a5e129a117ca7cbd13e5155785390ce40c937 (patch)
treee37a6d66495d52f71800865ca41cec13b02920eb
parent23f6127327b524b51560d0bc254f18dc18294eea (diff)
linux: Remove obsolete check for magicmouse_ and duplicated wacom_ checks
Signed-off-by: Richard Hughes <richard@hughsie.com>
-rw-r--r--src/linux/up-device-supply.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c
index 8201631..309c0e3 100644
--- a/src/linux/up-device-supply.c
+++ b/src/linux/up-device-supply.c
@@ -886,11 +886,8 @@ up_device_supply_coldplug (UpDevice *device)
} else if (g_ascii_strcasecmp (device_type, "USB") == 0) {
/* use a heuristic to find the device type */
- if (g_strstr_len (native_path, -1, "wacom_") != NULL ||
- g_strstr_len (native_path, -1, "wacom_") != NULL) {
+ if (g_strstr_len (native_path, -1, "wacom_") != NULL) {
type = UP_DEVICE_KIND_TABLET;
- } else if (g_strstr_len (native_path, -1, "magicmouse_") != NULL) {
- type = UP_DEVICE_KIND_MOUSE;
} else {
g_warning ("did not recognise USB path %s, please report",
native_path);