summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-10-23 21:25:02 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-10-23 21:25:02 +0000
commit6ebb0299dc72b9b6141be5f2712b1319eb0ac1c1 (patch)
tree00db2149a9f0feafff80938966513444a07899ce /hcid
parent93bb0c7373ea0cb22d4c655717f72fc4c126b073 (diff)
Remove unecessary checks for rp.status
Diffstat (limited to 'hcid')
-rw-r--r--hcid/dbus.c18
1 files changed, 0 insertions, 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);