media: rga: Remove surplus name initialization
authorAnton Leontiev <scileont@gmail.com>
Tue, 12 Jun 2018 10:11:06 +0000 (06:11 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 28 Jun 2018 11:53:19 +0000 (07:53 -0400)
Name is already initialized by assignment from rga_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/rockchip/rga/rga.c

index d508a8b..e8dffca 100644 (file)
@@ -882,7 +882,6 @@ static int rga_probe(struct platform_device *pdev)
        vfd->v4l2_dev = &rga->v4l2_dev;
 
        video_set_drvdata(vfd, rga);
-       snprintf(vfd->name, sizeof(vfd->name), "%s", rga_videodev.name);
        rga->vfd = vfd;
 
        platform_set_drvdata(pdev, rga);