aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-08-17 02:22:55 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-01 19:26:33 -0400
commitbae061b46e522163e2e499af05788c282492836e (patch)
tree0e8011ed7bf21916d31922af7ce552c76f2eebe9
parent26ee7f47028904a6a7da7f2979a25e8ea937fa32 (diff)
[media] s5p-mfc: Add missing braces around sizeof
Silences the following 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: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index 0476be4ee567..9360d5771823 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -649,7 +649,7 @@ static int s5p_mfc_open(struct file *file)
649 return -ERESTARTSYS; 649 return -ERESTARTSYS;
650 dev->num_inst++; /* It is guarded by mfc_mutex in vfd */ 650 dev->num_inst++; /* It is guarded by mfc_mutex in vfd */
651 /* Allocate memory for context */ 651 /* Allocate memory for context */
652 ctx = kzalloc(sizeof *ctx, GFP_KERNEL); 652 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
653 if (!ctx) { 653 if (!ctx) {
654 mfc_err("Not enough memory\n"); 654 mfc_err("Not enough memory\n");
655 ret = -ENOMEM; 655 ret = -ENOMEM;
@@ -961,7 +961,7 @@ static int s5p_mfc_probe(struct platform_device *pdev)
961 int ret; 961 int ret;
962 962
963 pr_debug("%s++\n", __func__); 963 pr_debug("%s++\n", __func__);
964 dev = devm_kzalloc(&pdev->dev, sizeof *dev, GFP_KERNEL); 964 dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
965 if (!dev) { 965 if (!dev) {
966 dev_err(&pdev->dev, "Not enough memory for MFC device\n"); 966 dev_err(&pdev->dev, "Not enough memory for MFC device\n");
967 return -ENOMEM; 967 return -ENOMEM;