Message ID | 1345117978-3374-1-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show |
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
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;
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(-)