media: s5p-g2d: Remove surplus name initialization
authorAnton Leontiev <scileont@gmail.com>
Tue, 12 Jun 2018 10:11:03 +0000 (06:11 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 28 Jun 2018 11:52:20 +0000 (07:52 -0400)
Name is already initialized by assignment from g2d_videodev.

Signed-off-by: Anton Leontiev <scileont@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/s5p-g2d/g2d.c

index 66aa8cf..3735c20 100644 (file)
@@ -702,7 +702,6 @@ static int g2d_probe(struct platform_device *pdev)
                goto rel_vdev;
        }
        video_set_drvdata(vfd, dev);
-       snprintf(vfd->name, sizeof(vfd->name), "%s", g2d_videodev.name);
        dev->vfd = vfd;
        v4l2_info(&dev->v4l2_dev, "device registered as /dev/video%d\n",
                                                                vfd->num);