Skip to contentSkip to conversation

drm/omap: dsi: Remove unused variable

PATCH In review Thierry Reding 2 participants 4 messages Jun 21, 2016

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

PATCH 1/2 drm/omap: dsi: Remove unused variable

From: Thierry Reding <[email protected]>

Commit 973999aa0140 ("drm/omap: Remove regulator API abuse") removed the only user of the local 'r' variable, which thus became unused.

---
 drivers/gpu/drm/omapdrm/dss/dsi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/omapdrm/dss/dsi.c +0 -1
index 6f45e9d00b41..e1be5e795cd8 100644
@@ -1167,7 +1167,6 @@ static int dsi_regulator_init(struct platform_device *dsidev)
 {
 	struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev);
 	struct regulator *vdds_dsi;
-	int r;
 
 	if (dsi->vdds_dsi_reg != NULL)
 		return 0;
Signature · 6 lines
2.8.3

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

PATCH 2/2 drm/omap: hdmi: Remove unused variable

From: Thierry Reding <[email protected]>

Commit 973999aa0140 ("drm/omap: Remove regulator API abuse") removed the only user of the local 'r' variable, which thus became unused.

---
 drivers/gpu/drm/omapdrm/dss/hdmi5.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/omapdrm/dss/hdmi5.c +0 -1
index 061f9bab4c9b..0c0a5139a301 100644
@@ -120,7 +120,6 @@ static irqreturn_t hdmi_irq_handler(int irq, void *data)
 
 static int hdmi_init_regulator(void)
 {
-	int r;
 	struct regulator *reg;
 
 	if (hdmi.vdda_reg != NULL)
Signature · 6 lines
2.8.3

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw
In reply to Thierry Reding

Hi Thierry,

Quoted 16 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Commit 973999aa0140 ("drm/omap: Remove regulator API abuse") removed the only user of the local 'r' variable, which thus became unused.

---
 drivers/gpu/drm/omapdrm/dss/dsi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/omapdrm/dss/dsi.c +0 -0
index 6f45e9d00b41..e1be5e795cd8 100644

drivers/gpu/drm/omapdrm/dss/dsi.c static int dsi_regulator_init(struct platform_device *dsidev) · line 1172

Quoted 7 lines
drivers/gpu/drm/omapdrm/dss/dsi.c +0 -1
@@ -1167,7 +1167,6 @@ static int dsi_regulator_init(struct platform_device *dsidev)
 {
 	struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev);
 	struct regulator *vdds_dsi;
-	int r;
 
 	if (dsi->vdds_dsi_reg != NULL)
 		return 0;

Thanks, but there's already 85332739628fe4beafecdb713438c7cb1454c2f5 ("drm/omap: fix unused variable warning in dsi & hdmi") in the mainline (-rc3).

Tomi

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
Quoted 23 lines · Tomi Valkeinen

Hi Thierry,

Quoted 20 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Commit 973999aa0140 ("drm/omap: Remove regulator API abuse") removed the only user of the local 'r' variable, which thus became unused.

---
 drivers/gpu/drm/omapdrm/dss/dsi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/omapdrm/dss/dsi.c +0 -1
index 6f45e9d00b41..e1be5e795cd8 100644
@@ -1167,7 +1167,6 @@ static int dsi_regulator_init(struct platform_device *dsidev)
 {
 	struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev);
 	struct regulator *vdds_dsi;
-	int r;
 
Quoted 7 lines

drivers/gpu/drm/omapdrm/dss/dsi.c static int dsi_regulator_init(struct platform_device *dsidev) · line 1172

Quoted 3 lines
drivers/gpu/drm/omapdrm/dss/dsi.c +0 -0
 	if (dsi->vdds_dsi_reg != NULL)
 		return 0;

Thanks, but there's already 85332739628fe4beafecdb713438c7cb1454c2f5 ("drm/omap: fix unused variable warning in dsi & hdmi") in the mainline (-rc3).

Bah... that's what I get for not generating patches against linux-next. Thanks for letting me know.

Thierry

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel