aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/platform/s5p-fimc/fimc-capture.c2
-rw-r--r--drivers/media/platform/s5p-fimc/fimc-m2m.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/s5p-fimc/fimc-capture.c b/drivers/media/platform/s5p-fimc/fimc-capture.c
index 6792fd4236c6..d7df8fb14889 100644
--- a/drivers/media/platform/s5p-fimc/fimc-capture.c
+++ b/drivers/media/platform/s5p-fimc/fimc-capture.c
@@ -1596,7 +1596,7 @@ static int fimc_register_capture_device(struct fimc_dev *fimc,
1596 struct vb2_queue *q; 1596 struct vb2_queue *q;
1597 int ret = -ENOMEM; 1597 int ret = -ENOMEM;
1598 1598
1599 ctx = kzalloc(sizeof *ctx, GFP_KERNEL); 1599 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
1600 if (!ctx) 1600 if (!ctx)
1601 return -ENOMEM; 1601 return -ENOMEM;
1602 1602
diff --git a/drivers/media/platform/s5p-fimc/fimc-m2m.c b/drivers/media/platform/s5p-fimc/fimc-m2m.c
index 51fc04c2f27c..6b71d953fd15 100644
--- a/drivers/media/platform/s5p-fimc/fimc-m2m.c
+++ b/drivers/media/platform/s5p-fimc/fimc-m2m.c
@@ -659,7 +659,7 @@ static int fimc_m2m_open(struct file *file)
659 if (fimc->vid_cap.refcnt > 0) 659 if (fimc->vid_cap.refcnt > 0)
660 goto unlock; 660 goto unlock;
661 661
662 ctx = kzalloc(sizeof *ctx, GFP_KERNEL); 662 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
663 if (!ctx) { 663 if (!ctx) {
664 ret = -ENOMEM; 664 ret = -ENOMEM;
665 goto unlock; 665 goto unlock;