Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3556194ybz; Mon, 20 Apr 2020 05:15:12 -0700 (PDT) X-Google-Smtp-Source: APiQypKqRCgdb3EhB3HM52iwCScGo4PkxgSEGahtjGmPn5wF5Q9k3tes02evMuP0lg9dGmf+E9a2 X-Received: by 2002:a17:906:5601:: with SMTP id f1mr15380602ejq.152.1587384912373; Mon, 20 Apr 2020 05:15:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587384912; cv=none; d=google.com; s=arc-20160816; b=ToA726Hk3tpwhw7Aygu9/UOLZFFK/rkfdcuw4XDl4+eMWbB7n/7IOaXB4Hkgn8YFeB Z4d6uuOMMg+r9yXbYtqzMKXe/UffM+84NrM1LQFtTw3WxF/J2sgu47wvfazYKcJz0u5k d2t1BImVwa3GALycI8jBMeVfpXdKNQtkjUQGJPi/KeB566PCWsMWgKbftyZVZC435aDF trpC0ATjSApco/Koi50wGKLXcsKovPKTThibkExKQPorjBC8mPU2eMZOwIM6gBA79cVp Q+1AX9A23btf+sk33zlkUoHt4biBMMqZqnUnPOUWwLDdVw5/T+VMFplyey08wjxCnOK/ oqFQ== 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; bh=wFddCxFAVLPg3xecfMztinFWcLrDqIl4WI03c3TMPdc=; b=W7aLsqenYc0xTnv4kqWKw+Hfto/AO6hXrIP4ckGCXbBoXc8Twk+WGhjGqO+IMK0cYX q0XWxX0rpoSm8jn4q7h4t9WUloG5Z2CWeWnNyymagUixAfInIEPIg0782jVQqA6JqSC6 7aigMUtGIOh4oCQoCnXKX6e4bps8HWBrPwJI/m70Qnq7R2XOoLy7X2cGPGk7pHP5qRHP QdASFMCuveYGzJDbL8Fd9cUIW8qSWbru9rmxa/f1KVXDC0W8eceIn8KqFy0drDGrZPXA JCfjUfW6Nr5L5IL8hc1V8AXAZOykIILK8LcJePOt11IKvoaQYCyDKXQHfx6ovUGd0yq+ 2YIA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r27si387349edc.594.2020.04.20.05.14.49; Mon, 20 Apr 2020 05:15:12 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726774AbgDTML1 (ORCPT + 99 others); Mon, 20 Apr 2020 08:11:27 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:37992 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726262AbgDTML1 (ORCPT ); Mon, 20 Apr 2020 08:11:27 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id A7A2F913A48CE846EB2E; Mon, 20 Apr 2020 20:11:21 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Mon, 20 Apr 2020 20:11:13 +0800 From: Jason Yan To: , , , , , , CC: Jason Yan Subject: [PATCH] staging: mt7621-pinctrl: Use correct pointer type argument for sizeof Date: Mon, 20 Apr 2020 20:37:55 +0800 Message-ID: <20200420123755.4353-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c:223:14-36: WARNING: Use correct pointer type argument for sizeof Signed-off-by: Jason Yan --- drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c b/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c index d0f06790d38f..8883f2a8ea57 100644 --- a/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c +++ b/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c @@ -220,7 +220,7 @@ static int rt2880_pinmux_index(struct rt2880_priv *p) /* allocate our function and group mapping index buffers */ f = p->func = devm_kcalloc(p->dev, p->func_count, - sizeof(struct rt2880_pmx_func), + sizeof(struct rt2880_pmx_func *), GFP_KERNEL); gpio_func.groups = devm_kcalloc(p->dev, p->group_count, sizeof(int), GFP_KERNEL); -- 2.21.1