bluetooth: ignore error if driver returns -EALREADY
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 25 Jun 2012 08:54:35 +0000 (11:54 +0300)
committerDenis Kenzior <denkenz@gmail.com>
Fri, 22 Jun 2012 07:46:46 +0000 (02:46 -0500)
plugins/bluetooth.c

index dbf79eb..cb5fe24 100644 (file)
@@ -275,7 +275,7 @@ static void bluetooth_probe(GSList *uuids, const char *path,
                        continue;
 
                err = driver->probe(path, device, adapter, alias);
-               if (err == 0)
+               if (err == 0 || err == -EALREADY)
                        continue;
 
                ofono_error("%s probe: %s (%d)", driver->name, strerror(-err),