]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: Remove unused parameter from tlv_data_is_valid function
authorSzymon Janc <szymon.janc@codecoup.pl>
Sun, 18 Sep 2016 10:50:04 +0000 (12:50 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 19 Sep 2016 18:19:34 +0000 (20:19 +0200)
hdev parameter is not used in function.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c

index 78d708851208bd79a1aba6b7462170141a2b2771..97f70b7fb7b1118817f12135d6c313a026e060c1 100644 (file)
@@ -6005,8 +6005,7 @@ static int read_adv_features(struct sock *sk, struct hci_dev *hdev,
        return err;
 }
 
-static bool tlv_data_is_valid(struct hci_dev *hdev, u32 adv_flags, u8 *data,
-                             u8 len, bool is_adv_data)
+static bool tlv_data_is_valid(u32 adv_flags, u8 *data, u8 len, bool is_adv_data)
 {
        u8 max_len = HCI_MAX_AD_LENGTH;
        int i, cur_len;
@@ -6168,8 +6167,8 @@ static int add_advertising(struct sock *sk, struct hci_dev *hdev,
                goto unlock;
        }
 
-       if (!tlv_data_is_valid(hdev, flags, cp->data, cp->adv_data_len, true) ||
-           !tlv_data_is_valid(hdev, flags, cp->data + cp->adv_data_len,
+       if (!tlv_data_is_valid(flags, cp->data, cp->adv_data_len, true) ||
+           !tlv_data_is_valid(flags, cp->data + cp->adv_data_len,
                               cp->scan_rsp_len, false)) {
                err = mgmt_cmd_status(sk, hdev->id, MGMT_OP_ADD_ADVERTISING,
                                      MGMT_STATUS_INVALID_PARAMS);