From 6ebb0299dc72b9b6141be5f2712b1319eb0ac1c1 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 23 Oct 2005 21:25:02 +0000 Subject: Remove unecessary checks for rp.status --- hcid/dbus.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/hcid/dbus.c b/hcid/dbus.c index 8205b066..8f0217ec 100644 --- a/hcid/dbus.c +++ b/hcid/dbus.c @@ -1374,12 +1374,6 @@ static DBusMessage* handle_inq_req(DBusMessage *msg, void *data) goto failed; } - if (rp.status) { - syslog(LOG_ERR, "Inquiry command failed with status 0x%02X", rp.status); - reply = bluez_new_failure_msg(msg, BLUEZ_ESYSTEM_OFFSET + EIO); - goto failed; - } - reply = dbus_message_new_method_return(msg); failed: @@ -1496,12 +1490,6 @@ static DBusMessage* handle_remote_name_req(DBusMessage *msg, void *data) goto failed; } - if (rp.status) { - syslog(LOG_ERR, "Remote name command failed with status 0x%02X", rp.status); - reply = bluez_new_failure_msg(msg, BLUEZ_ESYSTEM_OFFSET + EIO); - goto failed; - } - reply = dbus_message_new_method_return(msg); failed: @@ -1655,12 +1643,6 @@ static DBusMessage* handle_auth_req(DBusMessage *msg, void *data) goto failed; } - if (rp.status) { - syslog(LOG_ERR, "Authentication command failed with status 0x%02X", rp.status); - reply = bluez_new_failure_msg(msg, BLUEZ_ESYSTEM_OFFSET + EIO); - goto failed; - } - failed: if (sock >= 0) close(sock); -- cgit