diff --git a/profiles/network/bnep.c b/profiles/network/bnep.c
index 3a6e3a4..b8d2985 100644
--- a/profiles/network/bnep.c
+++ b/profiles/network/bnep.c
goto failed;
if (bnep_if_up(session->iface)) {
- error("bnep: could not up %s", session->iface);
bnep_conndel(&session->dst_addr);
goto failed;
}
return -errno;
}
- if (bnep_if_up(iface) < 0) {
- error("bnep: Can't up the interface %s: %s(%d)",
- iface, strerror(errno), errno);
- return -errno;
- }
-
- return 0;
+ return bnep_if_up(iface);
}
void bnep_server_delete(char *bridge, char *iface, const bdaddr_t *addr)