mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 07:10:27 +00:00
[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>
This commit is contained in:
parent
b7e13ef7e6
commit
56ed221f09
@ -894,7 +894,7 @@ static int m2mtest_open(struct file *file)
|
|||||||
|
|
||||||
if (mutex_lock_interruptible(&dev->dev_mutex))
|
if (mutex_lock_interruptible(&dev->dev_mutex))
|
||||||
return -ERESTARTSYS;
|
return -ERESTARTSYS;
|
||||||
ctx = kzalloc(sizeof *ctx, GFP_KERNEL);
|
ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
|
||||||
if (!ctx) {
|
if (!ctx) {
|
||||||
rc = -ENOMEM;
|
rc = -ENOMEM;
|
||||||
goto open_unlock;
|
goto open_unlock;
|
||||||
@ -1020,7 +1020,7 @@ static int m2mtest_probe(struct platform_device *pdev)
|
|||||||
struct video_device *vfd;
|
struct video_device *vfd;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
dev = kzalloc(sizeof *dev, GFP_KERNEL);
|
dev = kzalloc(sizeof(*dev), GFP_KERNEL);
|
||||||
if (!dev)
|
if (!dev)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user