]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[media] mem2mem_testdev: Add missing braces around sizeof
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 24 Sep 2012 05:17:46 +0000 (02:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 6 Oct 2012 14:51:12 +0000 (11:51 -0300)
Fixes the following checkpatch warnings:
WARNING: sizeof *ctx should be sizeof(*ctx)
WARNING: sizeof *dev should be sizeof(*dev)

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/mem2mem_testdev.c

index 43395dfa20ee1bccfd24988be73b90d6fae1b4c6..8b27a7e2a09a3758e7d1d71fb1473772c87a87ba 100644 (file)
@@ -894,7 +894,7 @@ static int m2mtest_open(struct file *file)
 
        if (mutex_lock_interruptible(&dev->dev_mutex))
                return -ERESTARTSYS;
-       ctx = kzalloc(sizeof *ctx, GFP_KERNEL);
+       ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
        if (!ctx) {
                rc = -ENOMEM;
                goto open_unlock;
@@ -1020,7 +1020,7 @@ static int m2mtest_probe(struct platform_device *pdev)
        struct video_device *vfd;
        int ret;
 
-       dev = kzalloc(sizeof *dev, GFP_KERNEL);
+       dev = kzalloc(sizeof(*dev), GFP_KERNEL);
        if (!dev)
                return -ENOMEM;