All of lore.kernel.org
 help / color / mirror / Atom feed
From: SF Markus Elfring <elfring@users.sourceforge.net>
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/9] ARM: OMAP2+: McBSP: Improve a size determination in omap_init_mcbsp()
Date: Sat, 03 Jun 2017 18:30:14 +0000	[thread overview]
Message-ID: <b83f5bc2-c6a2-a53e-5dec-33e31f9addeb@users.sourceforge.net> (raw)
In-Reply-To: <e9d44aa5-9208-9ff3-46ec-cd58ac3f4696@users.sourceforge.net>

From: Markus Elfring <elfring@users.sourceforge.net>
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 <elfring@users.sourceforge.net>
---
 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


WARNING: multiple messages have this Message-ID (diff)
From: SF Markus Elfring <elfring@users.sourceforge.net>
To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	Russell King <linux@armlinux.org.uk>,
	Tony Lindgren <tony@atomide.com>
Cc: kernel-janitors@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH 4/9] ARM: OMAP2+: McBSP: Improve a size determination in omap_init_mcbsp()
Date: Sat, 3 Jun 2017 20:30:14 +0200	[thread overview]
Message-ID: <b83f5bc2-c6a2-a53e-5dec-33e31f9addeb@users.sourceforge.net> (raw)
In-Reply-To: <e9d44aa5-9208-9ff3-46ec-cd58ac3f4696@users.sourceforge.net>

From: Markus Elfring <elfring@users.sourceforge.net>
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 <elfring@users.sourceforge.net>
---
 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

WARNING: multiple messages have this Message-ID (diff)
From: elfring@users.sourceforge.net (SF Markus Elfring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/9] ARM: OMAP2+: McBSP: Improve a size determination in omap_init_mcbsp()
Date: Sat, 3 Jun 2017 20:30:14 +0200	[thread overview]
Message-ID: <b83f5bc2-c6a2-a53e-5dec-33e31f9addeb@users.sourceforge.net> (raw)
In-Reply-To: <e9d44aa5-9208-9ff3-46ec-cd58ac3f4696@users.sourceforge.net>

From: Markus Elfring <elfring@users.sourceforge.net>
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 <elfring@users.sourceforge.net>
---
 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

WARNING: multiple messages have this Message-ID (diff)
From: SF Markus Elfring <elfring@users.sourceforge.net>
To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	Russell King <linux@armlinux.org.uk>,
	Tony Lindgren <tony@atomide.com>
Cc: LKML <linux-kernel@vger.kernel.org>, kernel-janitors@vger.kernel.org
Subject: [PATCH 4/9] ARM: OMAP2+: McBSP: Improve a size determination in omap_init_mcbsp()
Date: Sat, 3 Jun 2017 20:30:14 +0200	[thread overview]
Message-ID: <b83f5bc2-c6a2-a53e-5dec-33e31f9addeb@users.sourceforge.net> (raw)
In-Reply-To: <e9d44aa5-9208-9ff3-46ec-cd58ac3f4696@users.sourceforge.net>

From: Markus Elfring <elfring@users.sourceforge.net>
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 <elfring@users.sourceforge.net>
---
 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

  parent reply	other threads:[~2017-06-03 18:30 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-03 18:20 [PATCH 0/9] ARM: OMAP2+: Adjustments for seven function implementations SF Markus Elfring
2017-06-03 18:20 ` SF Markus Elfring
2017-06-03 18:20 ` SF Markus Elfring
2017-06-03 18:20 ` SF Markus Elfring
2017-06-03 18:27 ` [PATCH 1/9] ARM: OMAP2+: Delete an error message for a failed memory allocation in omap_mcspi_init() SF Markus Elfring
2017-06-03 18:27   ` SF Markus Elfring
2017-06-03 18:27   ` SF Markus Elfring
2017-06-03 18:27   ` SF Markus Elfring
2017-06-03 18:28 ` [PATCH 2/9] ARM: OMAP2+: Delete an error message for a failed memory allocation in two functions SF Markus Elfring
2017-06-03 18:28   ` SF Markus Elfring
2017-06-03 18:28   ` SF Markus Elfring
2017-06-03 18:28   ` SF Markus Elfring
2017-06-03 18:29 ` [PATCH 3/9] ARM: OMAP2+: McBSP: Delete an unnecessary variable initialisation in omap_init_mcbsp() SF Markus Elfring
2017-06-03 18:29   ` SF Markus Elfring
2017-06-03 18:29   ` SF Markus Elfring
2017-06-03 18:29   ` SF Markus Elfring
2017-06-03 18:30 ` SF Markus Elfring [this message]
2017-06-03 18:30   ` [PATCH 4/9] ARM: OMAP2+: McBSP: Improve a size determination " SF Markus Elfring
2017-06-03 18:30   ` SF Markus Elfring
2017-06-03 18:30   ` SF Markus Elfring
2017-06-03 18:31 ` [PATCH 5/9] ARM: OMAP2+: McBSP: Delete an error message for a failed memory allocation in omap_init_ SF Markus Elfring
2017-06-03 18:31   ` [PATCH 5/9] ARM: OMAP2+: McBSP: Delete an error message for a failed memory allocation in omap_init_mcbsp() SF Markus Elfring
2017-06-03 18:31   ` SF Markus Elfring
2017-06-03 18:31   ` SF Markus Elfring
2017-06-03 18:32 ` [PATCH 6/9] ARM: OMAP2+: Improve a size determination in sr_dev_init() SF Markus Elfring
2017-06-03 18:32   ` SF Markus Elfring
2017-06-03 18:32   ` SF Markus Elfring
2017-06-03 18:32   ` SF Markus Elfring
2017-06-03 18:33 ` [PATCH 7/9] ARM: OMAP2+: Use kcalloc() in sr_set_nvalues() SF Markus Elfring
2017-06-03 18:33   ` SF Markus Elfring
2017-06-03 18:33   ` SF Markus Elfring
2017-06-03 18:33   ` SF Markus Elfring
2017-06-03 18:34 ` [PATCH 8/9] ARM: OMAP2+: SmartReflex: Delete an error message for a failed memory allocation in two SF Markus Elfring
2017-06-03 18:34   ` [PATCH 8/9] ARM: OMAP2+: SmartReflex: Delete an error message for a failed memory allocation in two functions SF Markus Elfring
2017-06-03 18:34   ` SF Markus Elfring
2017-06-03 18:34   ` SF Markus Elfring
2017-06-03 18:36 ` [PATCH 9/9] ARM: OMAP2+: Delete an error message for a failed memory allocation in omap_timer_init() SF Markus Elfring
2017-06-03 18:36   ` SF Markus Elfring
2017-06-03 18:36   ` SF Markus Elfring
2017-06-03 18:36   ` SF Markus Elfring
2017-06-07  6:51 ` [PATCH 0/9] ARM: OMAP2+: Adjustments for seven function implementations Tony Lindgren
2017-06-07  6:51   ` Tony Lindgren
2017-06-07  6:51   ` Tony Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b83f5bc2-c6a2-a53e-5dec-33e31f9addeb@users.sourceforge.net \
    --to=elfring@users.sourceforge.net \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.