diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-09-24 01:17:46 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-06 10:51:12 -0400 |
commit | 56ed221f099afe5c234e5c2cd1371acc8ddbcd88 (patch) | |
tree | 760eab699d5efb6f589c55057e9223c3c39f9cbc | |
parent | b7e13ef7e61f19ecf0b5d4b7d2483ae7b9f15513 (diff) |
[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>
-rw-r--r-- | drivers/media/platform/mem2mem_testdev.c | 4 |
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) | |||
894 | 894 | ||
895 | if (mutex_lock_interruptible(&dev->dev_mutex)) | 895 | if (mutex_lock_interruptible(&dev->dev_mutex)) |
896 | return -ERESTARTSYS; | 896 | return -ERESTARTSYS; |
897 | ctx = kzalloc(sizeof *ctx, GFP_KERNEL); | 897 | ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); |
898 | if (!ctx) { | 898 | if (!ctx) { |
899 | rc = -ENOMEM; | 899 | rc = -ENOMEM; |
900 | goto open_unlock; | 900 | goto open_unlock; |
@@ -1020,7 +1020,7 @@ static int m2mtest_probe(struct platform_device *pdev) | |||
1020 | struct video_device *vfd; | 1020 | struct video_device *vfd; |
1021 | int ret; | 1021 | int ret; |
1022 | 1022 | ||
1023 | dev = kzalloc(sizeof *dev, GFP_KERNEL); | 1023 | dev = kzalloc(sizeof(*dev), GFP_KERNEL); |
1024 | if (!dev) | 1024 | if (!dev) |
1025 | return -ENOMEM; | 1025 | return -ENOMEM; |
1026 | 1026 | ||