Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5179501ybl; Wed, 22 Jan 2020 11:48:23 -0800 (PST) X-Google-Smtp-Source: APXvYqyuYsCY2nJsEjscgtIe425eetEDpIo7HATy6DwVnUmoy6x7B9aErLX3dcev8pojB7+iD/fY X-Received: by 2002:a05:6830:12ce:: with SMTP id a14mr8207977otq.366.1579722503135; Wed, 22 Jan 2020 11:48:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579722503; cv=none; d=google.com; s=arc-20160816; b=C/oZYp9KtVdi1yLi6jqLi5o4HS59A+/HP9U24EhN1LMZ1fsiUfWCAlvqtfanLkQTPw nL8zxvNoT2H8NyfR2CyoXzblJcUJ9IP4337EhScmF/nlxii+Dm0YtNtk8+/1ri560nDO ivYFbgxTkh5i5Zu33C82Kl9Vd6Xj1+Qb/27P2l1KfP6M36G+kqb/6fphu3s3/wUSk7dS 9Upkl3/OfTAy0XcAC8QIxAx1Ll1eEs4FQLCEIkVL7GbLhZ3cN8awkLyTGNsZ6cq1sPJ6 d/s20a8Pa8KcXqmHr0T/DdYK2s6cAibm9L7BqJYc+5JAtnBf9PMxYAnWiCrA5w8qc9EG 5zww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=CZHquoajQUtnF9C2BO0b6yquwX1857zFnjO9mJWC1R0=; b=0h9fkI+a+yRFQqbde4plobDgqQ7wHrdbiIlVIjaTZJLHsC4VPX0nBBVQbTi5LjtFB0 ZKNYfy5nWqk0rGIF1N9+ap+aGZVkLrTWDzpLkspDWSBLjhFwuGGsjAVdGXZwkImU3YOg ePYK9tj2iv5GbYEsyKz5/KT7ulWUp7HhJe/EHnQVox4JcFOLbLUsyywNlYvW4+m1+az/ aUmB9l9GV67FokPcY9XNucq0EBPPiGGF1LavRsjJXXvRVSMfRqm5jnlcU+cgD2sHgA7+ LnLDlgeFuzubLcMVYZcEQ634WYrQbrl5QKyvhEU4sI6JywtX/lfW7roQrzHB0En7EgBX sHgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EBsTpwrQ; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b9si21585733oie.20.2020.01.22.11.47.52; Wed, 22 Jan 2020 11:48:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EBsTpwrQ; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725928AbgAVTrt (ORCPT + 99 others); Wed, 22 Jan 2020 14:47:49 -0500 Received: from mail-vs1-f66.google.com ([209.85.217.66]:43055 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725827AbgAVTrt (ORCPT ); Wed, 22 Jan 2020 14:47:49 -0500 Received: by mail-vs1-f66.google.com with SMTP id s16so179214vsc.10 for ; Wed, 22 Jan 2020 11:47:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CZHquoajQUtnF9C2BO0b6yquwX1857zFnjO9mJWC1R0=; b=EBsTpwrQaT4xqFPEMoUNqg7gQmP9pgKQ5qZCt/jQkoqDQ19lW1FACRHIImQtihEXm/ +obCmtPszZvTYVhLFdH9XchvnTxv2hGpSudSCq4c29YOmHUb95bZ2o8V9d2b5/BUcCA3 nJfMycumvA7dDMwoQCpKLlPkbRsRXrBfdMTpM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CZHquoajQUtnF9C2BO0b6yquwX1857zFnjO9mJWC1R0=; b=RVxmLZySGVg+/LKccSwrKrdwJXK+r37B3uwC8m7jwKPIjGAYLDuniIc8iD8vSccCPp FQD1c7SBLap2BaHgkpDtT0NuuJ5EPwQB+PCR3qvqIEc/cvF8VrsGffG5wyuJcchHMMqz 9N8KZIiHkXqq0GQoPgqxU9WtGsdEipH5YdpAIgLkmlrzJfFXE8pgOCmGa7/ekdwiZYeX u7W8ZwYJAK+beGSo4glTZPsUy/mMbqv8lqNROUz/z+U64FiRT/KqMaUcJYh9fIWxzc6Q vE9RpaSkq3pNSkp6+fLA9970la+1Yj2oXjj5tb/VbfL8kTjS+tUZrrk8C/R11bg1MlDy yr5Q== X-Gm-Message-State: APjAAAW/pAnvHY1N+2HEefK3GWPVr3QtoFG8YSqspbZOkmMi5W5PXyHB /yo+J/8Y9bYv0pKThCZg7cReQd5q6MfYog== X-Received: by 2002:a67:f10c:: with SMTP id n12mr3584453vsk.208.1579722468334; Wed, 22 Jan 2020 11:47:48 -0800 (PST) Received: from alain.c.googlers.com.com (69.104.231.35.bc.googleusercontent.com. [35.231.104.69]) by smtp.gmail.com with ESMTPSA id a196sm12076679vke.14.2020.01.22.11.47.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2020 11:47:47 -0800 (PST) From: Alain Michaud To: linux-bluetooth@vger.kernel.org Cc: Alain Michaud Subject: [PATCH] bluetooth: fix appearance typo in mgmt.c Date: Wed, 22 Jan 2020 19:47:44 +0000 Message-Id: <20200122194744.239645-1-alainm@chromium.org> X-Mailer: git-send-email 2.25.0.341.g760bfbb309-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This change addresses a typo in the set_appearance handler. Signed-off-by: Alain Michaud --- net/bluetooth/mgmt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 0dc610faab70..19ea89b6a0ee 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -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); -- 2.25.0.341.g760bfbb309-goog