From ad5da41d57c3d4dff595e151521f39ff7812a264 Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Thu, 3 Jan 2013 10:14:58 -0400 Subject: [PATCH] input: Remove dead code from encrypt_completed() "status" is always zero, so this code will never be reached. --- profiles/input/device.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/profiles/input/device.c b/profiles/input/device.c index 9cea02857..765553444 100644 --- a/profiles/input/device.c +++ b/profiles/input/device.c @@ -276,18 +276,11 @@ static void encrypt_completed(uint8_t status, gpointer user_data) struct hidp_connadd_req *req = user_data; int err; - if (status) { - error("Encryption failed: %s(0x%x)", - strerror(bt_error(status)), status); - goto failed; - } - err = ioctl_connadd(req); if (err == 0) goto cleanup; error("ioctl_connadd(): %s(%d)", strerror(-err), -err); -failed: close(req->intr_sock); close(req->ctrl_sock); -- 2.47.3