From patchwork Sat Jun 3 18:30:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9764449 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E0E3560360 for ; Sat, 3 Jun 2017 18:30:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB66128475 for ; Sat, 3 Jun 2017 18:30:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF2AF28557; Sat, 3 Jun 2017 18:30:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 801DF28475 for ; Sat, 3 Jun 2017 18:30:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751187AbdFCSal (ORCPT ); Sat, 3 Jun 2017 14:30:41 -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 Received: from [192.168.1.2] ([77.182.192.46]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MfqSa-1dVbxj0Tn2-00N6DR; Sat, 03 Jun 2017 20:30:15 +0200 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-Language: en-GB 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-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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) {