summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hidp
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-10-07 02:27:56 +0200
committerGustavo F. Padovan <padovan@profusion.mobi>2011-10-07 04:15:06 +0200
commit192893c72197b3f49f76a315024bdcd5aa26fff3 (patch)
treec1ba3717aa43dced795a6e574043b4536841fe50 /net/bluetooth/hidp
parentBluetooth: Fix input device registration (diff)
downloadlinux-192893c72197b3f49f76a315024bdcd5aa26fff3.tar.xz
linux-192893c72197b3f49f76a315024bdcd5aa26fff3.zip
Bluetooth: Remove wrong error check
d458a9dfc add this check, but now it proves to be wrong. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hidp')
-rw-r--r--net/bluetooth/hidp/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index 8d99a17c478c..7722d8346684 100644
--- a/net/bluetooth/hidp/core.c
+++ b/net/bluetooth/hidp/core.c
@@ -1023,7 +1023,7 @@ int hidp_add_connection(struct hidp_connadd_req *req, struct socket *ctrl_sock,
if (req->rd_size > 0) {
err = hidp_setup_hid(session, req);
- if (err && err != -ENODEV)
+ if (err)
goto purge;
}