Skip to content

Commit f406a46

Browse files
Colin Ian Kingbzolnier
authored andcommitted
omapfb: encoder-tpd12s015: remove redundant pointer 'in'
Pointer 'in' is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'in' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
1 parent 8974b76 commit f406a46

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ static int tpd_probe_of(struct platform_device *pdev)
218218

219219
static int tpd_probe(struct platform_device *pdev)
220220
{
221-
struct omap_dss_device *in, *dssdev;
221+
struct omap_dss_device *dssdev;
222222
struct panel_drv_data *ddata;
223223
int r;
224224
struct gpio_desc *gpio;
@@ -237,7 +237,6 @@ static int tpd_probe(struct platform_device *pdev)
237237
return -ENODEV;
238238
}
239239

240-
241240
gpio = devm_gpiod_get_index_optional(&pdev->dev, NULL, 0,
242241
GPIOD_OUT_LOW);
243242
if (IS_ERR(gpio)) {
@@ -273,8 +272,6 @@ static int tpd_probe(struct platform_device *pdev)
273272
dssdev->owner = THIS_MODULE;
274273
dssdev->port_num = 1;
275274

276-
in = ddata->in;
277-
278275
r = omapdss_register_output(dssdev);
279276
if (r) {
280277
dev_err(&pdev->dev, "Failed to register output\n");

0 commit comments

Comments
 (0)