Skip to content

Commit

Permalink
[media] s5p-tv: Add missing braces around sizeof in hdmiphy_drv.c
Browse files Browse the repository at this point in the history
Fixes the following checkpatch warning:
WARNING: sizeof *ctx should be sizeof(*ctx)
FILE: media/platform/s5p-tv/hdmiphy_drv.c:287:
	ctx = kzalloc(sizeof *ctx, GFP_KERNEL);

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Sachin Kamat authored and Mauro Carvalho Chehab committed Jan 6, 2013
1 parent dc03398 commit 45b56d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/s5p-tv/hdmiphy_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ static int __devinit hdmiphy_probe(struct i2c_client *client,
{
struct hdmiphy_ctx *ctx;

ctx = kzalloc(sizeof *ctx, GFP_KERNEL);
ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
if (!ctx)
return -ENOMEM;

Expand Down

0 comments on commit 45b56d5

Please sign in to comment.