Skip to contentSkip to conversation

vim2m: Remove surplus name initialization

PATCH New Anton Leontiev 1 participant 6 messages Jun 12, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/6 vim2m: Remove surplus name initialization

Name is already initialized by assignment from vim2m_videodev.

---
 drivers/media/platform/vim2m.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/platform/vim2m.c +0 -1
index 065483e62db4..1393aa806462 100644
@@ -1020,7 +1020,6 @@ static int vim2m_probe(struct platform_device *pdev)
 	}
 
 	video_set_drvdata(vfd, dev);
-	snprintf(vfd->name, sizeof(vfd->name), "%s", vim2m_videodev.name);
 	v4l2_info(&dev->v4l2_dev,
 			"Device registered as /dev/video%d\n", vfd->num);
 
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/6 ti-vpe: Remove surplus name initialization

Name is already initialized by assignment from vpe_videodev.

---
 drivers/media/platform/ti-vpe/vpe.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/platform/ti-vpe/vpe.c +0 -1
index e395aa85c8ad..de968295ca7d 100644
@@ -2485,7 +2485,6 @@ static void vpe_fw_cb(struct platform_device *pdev)
 	}
 
 	video_set_drvdata(vfd, dev);
-	snprintf(vfd->name, sizeof(vfd->name), "%s", vpe_videodev.name);
 	dev_info(dev->v4l2_dev.dev, "Device registered as /dev/video%d\n",
 		vfd->num);
 }
Signature · 1 line
2.17.1
#2 lore raw

PATCH 3/6 s5p-g2d: Remove surplus name initialization

In reply to Anton Leontiev

Name is already initialized by assignment from g2d_videodev.

---
 drivers/media/platform/s5p-g2d/g2d.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/platform/s5p-g2d/g2d.c +0 -1
index 66aa8cf1d048..3735c204e9ac 100644
@@ -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);
Signature · 1 line
2.17.1
#3 lore raw

PATCH 4/6 mx2: Remove surplus name initialization

In reply to Anton Leontiev

Name is already initialized by assignment from emmaprp_videodev.

---
 drivers/media/platform/mx2_emmaprp.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/platform/mx2_emmaprp.c +0 -1
index 5a8eff60e95f..2e64729134b2 100644
@@ -934,7 +934,6 @@ static int emmaprp_probe(struct platform_device *pdev)
 	vfd->v4l2_dev = &pcdev->v4l2_dev;
 
 	video_set_drvdata(vfd, pcdev);
-	snprintf(vfd->name, sizeof(vfd->name), "%s", emmaprp_videodev.name);
 	pcdev->vfd = vfd;
 	v4l2_info(&pcdev->v4l2_dev, EMMAPRP_MODULE_NAME
 		  " Device registered as /dev/video%d\n", vfd->num);
Signature · 1 line
2.17.1
#4 lore raw

PATCH 5/6 m2m-deinterlace: Remove surplus name initialization

In reply to Anton Leontiev

Name is already initialized by assignment from deinterlace_videodev.

---
 drivers/media/platform/m2m-deinterlace.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/platform/m2m-deinterlace.c +0 -1
index 1e4195144f39..3008892eb8dd 100644
@@ -1040,7 +1040,6 @@ static int deinterlace_probe(struct platform_device *pdev)
 	}
 
 	video_set_drvdata(vfd, pcdev);
-	snprintf(vfd->name, sizeof(vfd->name), "%s", deinterlace_videodev.name);
 	v4l2_info(&pcdev->v4l2_dev, MEM2MEM_TEST_MODULE_NAME
 			" Device registered as /dev/video%d\n", vfd->num);
 
Signature · 1 line
2.17.1
#5 lore raw

PATCH 6/6 rga: Remove surplus name initialization

In reply to Anton Leontiev

Name is already initialized by assignment from rga_videodev.

---
 drivers/media/platform/rockchip/rga/rga.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/platform/rockchip/rga/rga.c +0 -1
index d508a8ba6f89..e8dffca669a1 100644
@@ -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);
Signature · 1 line
2.17.1