Bluetooth: Replace EPERM by EALREADY in hci_cancel_inquiry
authorAndre Guedes <aguedespe@gmail.com>
Tue, 20 Mar 2012 03:13:38 +0000 (00:13 -0300)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 9 May 2012 03:41:33 +0000 (00:41 -0300)
commit7537e5c3064c5a5751a7b26aba82ad83c5e89190
tree901b83d468e5dbc1f0471642d083f4f480cbfcc9
parent3e9fb6d87ee543b10bcf245d4a5c6aa1ab0ac2ab
Bluetooth: Replace EPERM by EALREADY in hci_cancel_inquiry

We should return -EALREADY in hci_cancel_inquiry since it is more
suitable than -EPERM error code.

Signed-off-by: Andre Guedes <aguedespe@gmail.com>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
net/bluetooth/hci_core.c