From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZeHra-0004PQ-Hm for barebox@lists.infradead.org; Tue, 22 Sep 2015 07:19:43 +0000 From: Sascha Hauer Date: Tue, 22 Sep 2015 09:19:18 +0200 Message-Id: <1442906359-17286-3-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1442906359-17286-1-git-send-email-s.hauer@pengutronix.de> References: <1442906359-17286-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/3] video: ipuv3: imx-ldb: remove unused variable To: Barebox List endpoint is set but not used. Remove the code. Signed-off-by: Sascha Hauer --- 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@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox