From: Sachin Kamat Date: Mon, 24 Sep 2012 05:17:46 +0000 (-0300) Subject: [media] mem2mem_testdev: Add missing braces around sizeof X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=56ed221f099afe5c234e5c2cd1371acc8ddbcd88;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] mem2mem_testdev: Add missing braces around sizeof Fixes the following checkpatch warnings: WARNING: sizeof *ctx should be sizeof(*ctx) WARNING: sizeof *dev should be sizeof(*dev) Signed-off-by: Sachin Kamat Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/mem2mem_testdev.c b/drivers/media/platform/mem2mem_testdev.c index 43395dfa20ee..8b27a7e2a09a 100644 --- a/drivers/media/platform/mem2mem_testdev.c +++ b/drivers/media/platform/mem2mem_testdev.c @@ -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;