Name is already initialized by assignment from g2d_videodev.

Signed-off-by: Anton Leontiev <scile...@gmail.com>
---
 drivers/media/platform/s5p-g2d/g2d.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/media/platform/s5p-g2d/g2d.c 
b/drivers/media/platform/s5p-g2d/g2d.c
index 66aa8cf1d048..3735c204e9ac 100644
--- a/drivers/media/platform/s5p-g2d/g2d.c
+++ b/drivers/media/platform/s5p-g2d/g2d.c
@@ -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);
-- 
2.17.1

Reply via email to