[media] s5p-tv: Add missing braces around sizeof in hdmiphy_drv.c
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 26 Nov 2012 04:49:04 +0000 (01:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 6 Jan 2013 11:37:40 +0000 (09:37 -0200)
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>
drivers/media/platform/s5p-tv/hdmiphy_drv.c

index f67b386318014c34dff3fdc13c9aa8815eaf1d13..94c2a13c3b3ad917c9db27178cc79029cf8866be 100644 (file)
@@ -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;