* [PATCH Trivial] [media] s5p-jpeg: Add missing braces around sizeof
@ 2012-08-16 11:52 Sachin Kamat
2012-08-16 12:52 ` Sylwester Nawrocki
0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2012-08-16 11:52 UTC (permalink / raw)
To: linux-media; +Cc: mchehab, s.nawrocki, andrzej.p, sachin.kamat, patches
Silences the following warning:
WARNING: sizeof *ctx should be sizeof(*ctx)
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/media/platform/s5p-jpeg/jpeg-core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c
index 72c3e52..ae916cd 100644
--- a/drivers/media/platform/s5p-jpeg/jpeg-core.c
+++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c
@@ -288,7 +288,7 @@ static int s5p_jpeg_open(struct file *file)
struct s5p_jpeg_fmt *out_fmt;
int ret = 0;
- ctx = kzalloc(sizeof *ctx, GFP_KERNEL);
+ ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
if (!ctx)
return -ENOMEM;
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH Trivial] [media] s5p-jpeg: Add missing braces around sizeof
2012-08-16 11:52 [PATCH Trivial] [media] s5p-jpeg: Add missing braces around sizeof Sachin Kamat
@ 2012-08-16 12:52 ` Sylwester Nawrocki
0 siblings, 0 replies; 2+ messages in thread
From: Sylwester Nawrocki @ 2012-08-16 12:52 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-media, mchehab, andrzej.p, patches
On 08/16/2012 01:52 PM, Sachin Kamat wrote:
> Silences the following warning:
> WARNING: sizeof *ctx should be sizeof(*ctx)
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Thanks Sachin, I've added this to my tree for v3.7.
> ---
> drivers/media/platform/s5p-jpeg/jpeg-core.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c
> index 72c3e52..ae916cd 100644
> --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c
> +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c
> @@ -288,7 +288,7 @@ static int s5p_jpeg_open(struct file *file)
> struct s5p_jpeg_fmt *out_fmt;
> int ret = 0;
>
> - ctx = kzalloc(sizeof *ctx, GFP_KERNEL);
> + ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
> if (!ctx)
> return -ENOMEM;
Regards,
Sylwester
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-16 12:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-16 11:52 [PATCH Trivial] [media] s5p-jpeg: Add missing braces around sizeof Sachin Kamat
2012-08-16 12:52 ` 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).