Commit 63db780a authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Luiz Augusto von Dentz

Bluetooth: Fix EALREADY and ELOOP cases in bt_status()

'err' is known to be <0 at this point.

So, some cases can not be reached because of a missing "-".
Add it.

Fixes: ca2045e0 ("Bluetooth: Add bt_status")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 462fcd53
...@@ -170,7 +170,7 @@ __u8 bt_status(int err) ...@@ -170,7 +170,7 @@ __u8 bt_status(int err)
case -EMLINK: case -EMLINK:
return 0x09; return 0x09;
case EALREADY: case -EALREADY:
return 0x0b; return 0x0b;
case -EBUSY: case -EBUSY:
...@@ -191,7 +191,7 @@ __u8 bt_status(int err) ...@@ -191,7 +191,7 @@ __u8 bt_status(int err)
case -ECONNABORTED: case -ECONNABORTED:
return 0x16; return 0x16;
case ELOOP: case -ELOOP:
return 0x17; return 0x17;
case -EPROTONOSUPPORT: case -EPROTONOSUPPORT:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment