* [PATCH-Trivial] [media] s5p-mfc: Add missing braces around sizeof
@ 2012-08-17 6:22 Sachin Kamat
2012-08-17 8:19 ` Sylwester Nawrocki
0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2012-08-17 6:22 UTC (permalink / raw)
To: linux-media; +Cc: mchehab, k.debski, s.nawrocki, sachin.kamat, patches
Silences the following warnings:
WARNING: sizeof *ctx should be sizeof(*ctx)
WARNING: sizeof *dev should be sizeof(*dev)
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/media/platform/s5p-mfc/s5p_mfc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index e3e616d..815affe 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -649,7 +649,7 @@ static int s5p_mfc_open(struct file *file)
return -ERESTARTSYS;
dev->num_inst++; /* It is guarded by mfc_mutex in vfd */
/* Allocate memory for context */
- ctx = kzalloc(sizeof *ctx, GFP_KERNEL);
+ ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
if (!ctx) {
mfc_err("Not enough memory\n");
ret = -ENOMEM;
@@ -961,7 +961,7 @@ static int s5p_mfc_probe(struct platform_device *pdev)
int ret;
pr_debug("%s++\n", __func__);
- dev = devm_kzalloc(&pdev->dev, sizeof *dev, GFP_KERNEL);
+ dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
if (!dev) {
dev_err(&pdev->dev, "Not enough memory for MFC device\n");
return -ENOMEM;
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH-Trivial] [media] s5p-mfc: Add missing braces around sizeof
2012-08-17 6:22 [PATCH-Trivial] [media] s5p-mfc: Add missing braces around sizeof Sachin Kamat
@ 2012-08-17 8:19 ` Sylwester Nawrocki
0 siblings, 0 replies; 2+ messages in thread
From: Sylwester Nawrocki @ 2012-08-17 8:19 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-media, mchehab, k.debski, patches
Hi Sachin,
On 08/17/2012 08:22 AM, Sachin Kamat wrote:
> Silences the following warnings:
> WARNING: sizeof *ctx should be sizeof(*ctx)
> WARNING: sizeof *dev should be sizeof(*dev)
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
I've added this one to my tree.
Thanks!
Sylwester
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-17 8:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-17 6:22 [PATCH-Trivial] [media] s5p-mfc: Add missing braces around sizeof Sachin Kamat
2012-08-17 8:19 ` Sylwester Nawrocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).