endpoint is set but not used. Remove the code. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- drivers/video/imx-ipu-v3/imx-ldb.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/video/imx-ipu-v3/imx-ldb.c b/drivers/video/imx-ipu-v3/imx-ldb.c index db5f8b6..2f49ed2 100644 --- a/drivers/video/imx-ipu-v3/imx-ldb.c +++ b/drivers/video/imx-ipu-v3/imx-ldb.c @@ -308,7 +308,6 @@ static int imx_ldb_probe(struct device_d *dev) for_each_child_of_node(np, child) { struct imx_ldb_channel *channel; struct device_node *port; - struct device_node *endpoint; ret = of_property_read_u32(child, "reg", &i); if (ret || i < 0 || i > 1) @@ -334,12 +333,6 @@ static int imx_ldb_probe(struct device_d *dev) continue; } - endpoint = of_get_child_by_name(port, "endpoint"); - if (!endpoint) { - dev_warn(dev, "No endpoint found on %s\n", port->full_name); - continue; - } - channel->vpl.node = child; channel->vpl.ioctl = &imx_ldb_ioctl; ret = vpl_register(&channel->vpl); -- 2.5.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox