Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3596272ybz; Mon, 20 Apr 2020 06:02:27 -0700 (PDT) X-Google-Smtp-Source: APiQypJOjfCi+Gunf413xoVCwEoou+k3uavqGC9d8aJs7cMd+Y6Q7Jf11pchVSAUeO8OfKvN4SFG X-Received: by 2002:a50:bb2a:: with SMTP id y39mr13476706ede.292.1587387746938; Mon, 20 Apr 2020 06:02:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587387746; cv=none; d=google.com; s=arc-20160816; b=vGZpsqsisIh59YFYx3ukF85m7eTgIz/bsVDKohkvxKU4rcjKS0diGwH5oZ+NIpzz29 fPHcL/wygtFYdA1j7n17l/a9BMt9bQ+lJP6GcfSAo0AmwZhMEnic3zQxhtv8wHxgy87V MMDg94VGqR1U7XXMz8BQ9KHAA+yB7eB9vX/wbhTLVYdBahVbo1ZMiD9LhCuJdrrn7cyU utmiL0RlC+iNfiAwZECXqbJztwzU0xbfFNjr428r65BSMa9wdTHw+3vMvu6n+MhXfBK0 eTMrsKq9jN7IKnBNHQDaJLVyu9Plz46W/ErWC/mTWWOWIWJloqcoBvJ23ecmDIF6adue /Oeg== 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=QCXwT/+vtsqmZcQMI6v3UN1Uy2HzzGwJaFGx34a2T+I=; b=kYD0EUCzEy+gkw/7qHllxELdlLT5I4VTJhPgQjx56X8NSjIzHNOlzDlLnWk5Rhyiak 1oyXK4k137Ln15MT2G+Fzy6Z4FuyXcPbcb5OfFdaKhYjy/N7mrPhb6Z5fhyXTW554Fgb O6ycvdG14GslfDEeX0aQ03kdcD6hciWLEwKokLdhkKrLjaYietmRAHch6hmPzadBMAjc oEWaeEJhgPSn37PTgn0EaPOld3/L+B85wiDLhIsESr2orR0Wv9cH6qzV3ZT+xft84HgQ Z3XD3BHqdOqjb2Rnihuj/xuD9nPs1PuFUBG8358Ks+nKH+N2Sq/8i0bEH+PM295Nk2xa Ab/A== 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 y4si466375edi.166.2020.04.20.06.02.02; Mon, 20 Apr 2020 06:02:26 -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 S1729022AbgDTM6y (ORCPT + 99 others); Mon, 20 Apr 2020 08:58:54 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:38766 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727843AbgDTMmb (ORCPT ); Mon, 20 Apr 2020 08:42:31 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 51B64AE72BC2C0ABB29C; Mon, 20 Apr 2020 20:42:29 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Mon, 20 Apr 2020 20:42:23 +0800 From: Jason Yan To: , , , , , , CC: Jason Yan Subject: [PATCH v2] staging: mt7621-pinctrl: Use correct pointer type argument for sizeof Date: Mon, 20 Apr 2020 20:41:51 +0800 Message-ID: <20200420124151.4356-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..caaf9e34f1ee 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(*p->func), GFP_KERNEL); gpio_func.groups = devm_kcalloc(p->dev, p->group_count, sizeof(int), GFP_KERNEL); -- 2.21.1