summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/mem2mem_testdev.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-09-24 02:17:46 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-06 11:51:12 -0300
commit56ed221f099afe5c234e5c2cd1371acc8ddbcd88 (patch)
tree760eab699d5efb6f589c55057e9223c3c39f9cbc /drivers/media/platform/mem2mem_testdev.c
parentb7e13ef7e61f19ecf0b5d4b7d2483ae7b9f15513 (diff)
downloadblackbird-op-linux-56ed221f099afe5c234e5c2cd1371acc8ddbcd88.tar.gz
blackbird-op-linux-56ed221f099afe5c234e5c2cd1371acc8ddbcd88.zip
[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 <sachin.kamat@linaro.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/mem2mem_testdev.c')
-rw-r--r--drivers/media/platform/mem2mem_testdev.c4
1 files changed, 2 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud