summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-02-18 17:14:32 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-02-18 08:58:20 -0800
commit35f7498a87794ca531335f7c782e5b9495fec6d6 (patch)
tree8c328c325df22b858281dd0259fd3d17624039ab /net/bluetooth/mgmt.c
parente0b2b27e622da0ba8a3d253b985d3d8f174b4313 (diff)
downloadop-kernel-dev-35f7498a87794ca531335f7c782e5b9495fec6d6.zip
op-kernel-dev-35f7498a87794ca531335f7c782e5b9495fec6d6.tar.gz
Bluetooth: Remove return values from functions that don't need them
There are many functions that never fail but still declare an integer return value for no reason. This patch converts these functions to use a void return value to avoid any confusion of whether they can fail or not. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 473f868..fbb76a0 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -2073,7 +2073,7 @@ static int remove_uuid(struct sock *sk, struct hci_dev *hdev, void *data,
}
if (memcmp(cp->uuid, bt_uuid_any, 16) == 0) {
- err = hci_uuids_clear(hdev);
+ hci_uuids_clear(hdev);
if (enable_service_cache(hdev)) {
err = cmd_complete(sk, hdev->id, MGMT_OP_REMOVE_UUID,
OpenPOWER on IntegriCloud