提交 dc033985 编写于 作者: S Sachin Kamat 提交者: Mauro Carvalho Chehab

[media] s5p-tv: Add missing braces around sizeof in mixer_drv.c

Silences checkpatch warnings of type:
WARNING: sizeof mdev->res should be sizeof(mdev->res)
FILE: media/platform/s5p-tv/mixer_drv.c:301:
	memset(&mdev->res, 0, sizeof mdev->res);
WARNING: sizeof *mdev should be sizeof(*mdev)
FILE: media/platform/s5p-tv/mixer_drv.c:385:
	mdev = kzalloc(sizeof *mdev, GFP_KERNEL);
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Acked-by: NTomasz Stanislawski <t.stanislaws@samsung.com>
Signed-off-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 ad84291c
...@@ -298,7 +298,7 @@ static void mxr_release_resources(struct mxr_device *mdev) ...@@ -298,7 +298,7 @@ static void mxr_release_resources(struct mxr_device *mdev)
{ {
mxr_release_clocks(mdev); mxr_release_clocks(mdev);
mxr_release_plat_resources(mdev); mxr_release_plat_resources(mdev);
memset(&mdev->res, 0, sizeof mdev->res); memset(&mdev->res, 0, sizeof(mdev->res));
} }
static void mxr_release_layers(struct mxr_device *mdev) static void mxr_release_layers(struct mxr_device *mdev)
...@@ -382,7 +382,7 @@ static int __devinit mxr_probe(struct platform_device *pdev) ...@@ -382,7 +382,7 @@ static int __devinit mxr_probe(struct platform_device *pdev)
/* mdev does not exist yet so no mxr_dbg is used */ /* mdev does not exist yet so no mxr_dbg is used */
dev_info(dev, "probe start\n"); dev_info(dev, "probe start\n");
mdev = kzalloc(sizeof *mdev, GFP_KERNEL); mdev = kzalloc(sizeof(*mdev), GFP_KERNEL);
if (!mdev) { if (!mdev) {
dev_err(dev, "not enough memory.\n"); dev_err(dev, "not enough memory.\n");
ret = -ENOMEM; ret = -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册