Skip to contentSkip to conversation

bluetooth: ignore error if driver returns -EALREADY

PATCH In review Luiz Augusto von Dentz 2 participants 2 messages Jun 22, 2012 – Jun 25, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bluetooth: ignore error if driver returns -EALREADY

From: Luiz Augusto von Dentz <[email protected]>

---
 plugins/bluetooth.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
plugins/bluetooth.c +1 -1
index dbf79eb..cb5fe24 100644
@@ -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),
Signature · 1 line
1.7.10.2