mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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: ca2045e059
("Bluetooth: Add bt_status")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
462fcd5392
commit
63db780a93
1 changed files with 2 additions and 2 deletions
|
@ -170,7 +170,7 @@ __u8 bt_status(int err)
|
|||
case -EMLINK:
|
||||
return 0x09;
|
||||
|
||||
case EALREADY:
|
||||
case -EALREADY:
|
||||
return 0x0b;
|
||||
|
||||
case -EBUSY:
|
||||
|
@ -191,7 +191,7 @@ __u8 bt_status(int err)
|
|||
case -ECONNABORTED:
|
||||
return 0x16;
|
||||
|
||||
case ELOOP:
|
||||
case -ELOOP:
|
||||
return 0x17;
|
||||
|
||||
case -EPROTONOSUPPORT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue