Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp237961pxb; Fri, 3 Sep 2021 00:43:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxB38gzFYK0Z8nFFlSKxeDbv5HNKleBsImEHnNzPynXWnRGZtJpnFJRuWAHq4wOchdyaiht X-Received: by 2002:a02:7818:: with SMTP id p24mr1547548jac.72.1630654993384; Fri, 03 Sep 2021 00:43:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630654993; cv=none; d=google.com; s=arc-20160816; b=Ba9b1jIVNhz3rLNdU8RqThjrrt1eqVAujR/HZiO6U1kPPa523fYAWvtKBJ4StFXQX3 zjCysGdYrhY2RNgT+Yc/cBqFARUhHPzEBsU9CXqQUnscC9DAUfA23pVTafwaQWKUXp2u n+p9cPewajY3fV8+mJNnTOVi3O/Jd8hpdxOdj5iIxS7SebupeAHNKIr8LoRWmdRCblMk 6M8GSAgFWwlrQWXdMJW3ksE5mlKqusSMZwml2OojQFAr2MoOpIIfQj85RF2uX/0IGdgJ IbMsOLMBDzUuU/UDFjClJkRpnplxWO3sbXTSzmBMiD6m558K/4nWwVxhbNZT+x4Mk3t2 tgSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=v3ughRFOvqqfn89cbYI/NIunf3XGfmvn7cqXvu8XgFs=; b=KihIMZevLGkhSyyv0bbTC3aHh/LnKxeYEym8Y9TsoMlhCVaKzow/Lmvd4mKuIHRhSc ZEjlND/tMxuP4G8jiheKbuJfnGTzs9CfjgS6IfaTnmSe5unwUXOUsk91CePr0pph5sAF xDoFK+fV9LRPWGma4eHjCswrwo2Pjb1eulKss/8zpH2Xj0RvdCthr1EXhSYCQ2nlnb7L oIcrzfPULb4IG3JPRBKtRNJQFqquWaxCLt1vo/XuxQ19MutRZuUG/eqvou2qyND88gwW Ecer+bpTbOZfsGnNe/01ymM0vbkN0hFVwVKqASBuxO+AnrrBr5l8A9N9lebAzDWQdPp6 yCqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s63si1777813jaa.30.2021.09.03.00.43.01; Fri, 03 Sep 2021 00:43:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347621AbhICHRk (ORCPT + 99 others); Fri, 3 Sep 2021 03:17:40 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:38186 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234713AbhICHRj (ORCPT ); Fri, 3 Sep 2021 03:17:39 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0Un5.81V_1630653397; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0Un5.81V_1630653397) by smtp.aliyun-inc.com(127.0.0.1); Fri, 03 Sep 2021 15:16:38 +0800 From: Yang Li To: marcel@holtmann.org Cc: johan.hedberg@gmail.com, luiz.dentz@gmail.com, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] Bluetooth: btusb: Fix the application of sizeof to pointer Date: Fri, 3 Sep 2021 15:16:32 +0800 Message-Id: <1630653392-45523-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org sizeof() when applied to a pointer typed expression gives the size of the pointer. Clean up coccicheck warning: ./drivers/bluetooth/btusb.c:2210:36-42: ERROR: application of sizeof to pointer Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/bluetooth/btusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 928cbfa..5bf479e 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -2207,7 +2207,7 @@ static int btusb_set_bdaddr_mtk(struct hci_dev *hdev, const bdaddr_t *bdaddr) struct sk_buff *skb; long ret; - skb = __hci_cmd_sync(hdev, 0xfc1a, sizeof(bdaddr), bdaddr, HCI_INIT_TIMEOUT); + skb = __hci_cmd_sync(hdev, 0xfc1a, sizeof(*bdaddr), bdaddr, HCI_INIT_TIMEOUT); if (IS_ERR(skb)) { ret = PTR_ERR(skb); bt_dev_err(hdev, "changing Mediatek device address failed (%ld)", -- 1.8.3.1