]> Git Repo - linux.git/commitdiff
Bluetooth: fix appearance typo in mgmt.c
authorAlain Michaud <[email protected]>
Wed, 22 Jan 2020 19:47:44 +0000 (19:47 +0000)
committerMarcel Holtmann <[email protected]>
Wed, 22 Jan 2020 20:23:16 +0000 (21:23 +0100)
This change addresses a typo in the set_appearance handler.

Signed-off-by: Alain Michaud <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
net/bluetooth/mgmt.c

index 3c68a366977f3cf84b44a793704a4b97cbf96e88..3074363c68df5547cbdf688a3b6c3d383764bb84 100644 (file)
@@ -3291,7 +3291,7 @@ static int set_appearance(struct sock *sk, struct hci_dev *hdev, void *data,
                          u16 len)
 {
        struct mgmt_cp_set_appearance *cp = data;
-       u16 apperance;
+       u16 appearance;
        int err;
 
        BT_DBG("");
@@ -3300,12 +3300,12 @@ static int set_appearance(struct sock *sk, struct hci_dev *hdev, void *data,
                return mgmt_cmd_status(sk, hdev->id, MGMT_OP_SET_APPEARANCE,
                                       MGMT_STATUS_NOT_SUPPORTED);
 
-       apperance = le16_to_cpu(cp->appearance);
+       appearance = le16_to_cpu(cp->appearance);
 
        hci_dev_lock(hdev);
 
-       if (hdev->appearance != apperance) {
-               hdev->appearance = apperance;
+       if (hdev->appearance != appearance) {
+               hdev->appearance = appearance;
 
                if (hci_dev_test_flag(hdev, HCI_LE_ADV))
                        adv_expire(hdev, MGMT_ADV_FLAG_APPEARANCE);
This page took 0.062103 seconds and 4 git commands to generate.