Pārlūkot izejas kodu

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>
Gustavo F. Padovan 13 gadi atpakaļ
vecāks
revīzija
192893c721
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      net/bluetooth/hidp/core.c

+ 1 - 1
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;
 	}