From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Date: Sat, 03 Jun 2017 18:30:14 +0000 Subject: [PATCH 4/9] ARM: OMAP2+: McBSP: Improve a size determination in omap_init_mcbsp() Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-arm-kernel@lists.infradead.org From: Markus Elfring Date: Sat, 3 Jun 2017 17:56:57 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus Elfring --- arch/arm/mach-omap2/mcbsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c index 53c4a30e2963..408793d14fc5 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c @@ -66,3 +66,3 @@ static int __init omap_init_mcbsp(struct omap_hwmod *oh, void *unused) - pdata = kzalloc(sizeof(struct omap_mcbsp_platform_data), GFP_KERNEL); + pdata = kzalloc(sizeof(*pdata), GFP_KERNEL); if (!pdata) { -- 2.13.0 From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Subject: [PATCH 4/9] ARM: OMAP2+: McBSP: Improve a size determination in omap_init_mcbsp() Date: Sat, 3 Jun 2017 20:30:14 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-GB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Russell King , Tony Lindgren Cc: kernel-janitors@vger.kernel.org, LKML List-Id: linux-omap@vger.kernel.org From: Markus Elfring Date: Sat, 3 Jun 2017 17:56:57 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus Elfring --- arch/arm/mach-omap2/mcbsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c index 53c4a30e2963..408793d14fc5 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c @@ -66,3 +66,3 @@ static int __init omap_init_mcbsp(struct omap_hwmod *oh, void *unused) - pdata = kzalloc(sizeof(struct omap_mcbsp_platform_data), GFP_KERNEL); + pdata = kzalloc(sizeof(*pdata), GFP_KERNEL); if (!pdata) { -- 2.13.0 From mboxrd@z Thu Jan 1 00:00:00 1970 From: elfring@users.sourceforge.net (SF Markus Elfring) Date: Sat, 3 Jun 2017 20:30:14 +0200 Subject: [PATCH 4/9] ARM: OMAP2+: McBSP: Improve a size determination in omap_init_mcbsp() In-Reply-To: References: Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org From: Markus Elfring Date: Sat, 3 Jun 2017 17:56:57 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus Elfring --- arch/arm/mach-omap2/mcbsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c index 53c4a30e2963..408793d14fc5 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c @@ -66,3 +66,3 @@ static int __init omap_init_mcbsp(struct omap_hwmod *oh, void *unused) - pdata = kzalloc(sizeof(struct omap_mcbsp_platform_data), GFP_KERNEL); + pdata = kzalloc(sizeof(*pdata), GFP_KERNEL); if (!pdata) { -- 2.13.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751298AbdFCSam (ORCPT ); Sat, 3 Jun 2017 14:30:42 -0400 Received: from mout.web.de ([212.227.15.4]:61902 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750991AbdFCSal (ORCPT ); Sat, 3 Jun 2017 14:30:41 -0400 Subject: [PATCH 4/9] ARM: OMAP2+: McBSP: Improve a size determination in omap_init_mcbsp() From: SF Markus Elfring To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Russell King , Tony Lindgren Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: Date: Sat, 3 Jun 2017 20:30:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:U1NswYFQ6QUjKzHaN4JWh7PmchlBTdCo59xiXpE3RpYy4AZgxzt gSkHoQaVjWEg01Vfaj1J7bJd4Xxfxx8ZyODLDabWp8WBoT0EVIDwLFJXHoull+ABaMPi9NR A7Fysg3PVUbOwP5x/vgMzv8ufr2x4DsKMj+B6hI8sdCDtxAC5xBN94aZrXZJpvs2oSuJ3uq LvLPSjBRPm49veO4nVRSA== X-UI-Out-Filterresults: notjunk:1;V01:K0:bA4RON935uM=:JrG+T9I1/cWzijxctLtp4x BFHf/ChbWOeeVyCkh94AtgTpOvXf5IcdUMeqM9ihv+2YWTj+l2KyqVLdhFSazNFd+DNKZggyu uIfgEzOr8WLZHEs2Apw2mN4ynR8s8umURN7Nqj30s/dEJUl4WD8ZoGIv+EaDqxbspjzZ7g+SB rOm0mwdzi4PA/cDkS9S9LscSxFIrXbe810E9pK+MJEimmIVTjw14uNCdxKEg2xECf1wKofpFF Ldkhp2v6CAWTVCS6daiJAUdUx1zEhYdTHto8ES5/2T0Lr32eW2gR8RAqNYCA6yO7wZ3ptHflT YdpJVXmdN0Kflbh30FXFebP2DFqX3MZwbqd+cjVB/RRBpKuGmAQKk5qqsyAYaDq8bw2jbhMXz 0KyGSuylWB2lk1JfrB7i1CQVaRp4I3UBmPGtUPXAQHrjKtOk1t6K0loFLd3huAgV3/Bee6d0k a4fDmI6B5Ae20mgQsYX0i5ixvE91fTUpkEyYUtxnEE1jRFdjX5UZsMWEIpl49K2G8xgDgM6yz K7d8iM6ZBVjI+OV+KvbNs8D5ODjXaTQr49/jJqQmDXC2iHC20j6eRgR165O5icpeep/ECcKZj luWumLkPZZzUjXR0IAFw/Vq3eIotjV2dXBJfSLfno+HXjcC2KIWrfCkDaCqkrpP/PZPkCxWsj QVrk5JGM3RKEV8hWQtqGIyztSQ0uUQBCdbk6kiqL08Kiv9lo40/kuPEZ8rOdeLuaL5YH2MPEC x69ljkkePCU1f68K6aLWleeX7eEaMbSjFDlM6/mr04Iw4paJnXkRXyu7gtNsLi32U1J2UApEm e3UuxcW Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Sat, 3 Jun 2017 17:56:57 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus Elfring --- arch/arm/mach-omap2/mcbsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c index 53c4a30e2963..408793d14fc5 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c @@ -66,3 +66,3 @@ static int __init omap_init_mcbsp(struct omap_hwmod *oh, void *unused) - pdata = kzalloc(sizeof(struct omap_mcbsp_platform_data), GFP_KERNEL); + pdata = kzalloc(sizeof(*pdata), GFP_KERNEL); if (!pdata) { -- 2.13.0