diff mbox series

[v9.2,5/9] fixes! [max9286]: Remove redundant call

Message ID 20200610124623.51085-6-kieran@bingham.xyz (mailing list archive)
State Superseded
Delegated to: Kieran Bingham
Headers show
Series GMSL fixups ready for v10. | expand

Commit Message

Kieran Bingham June 10, 2020, 12:46 p.m. UTC
From: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>

v4l2_fwnode_endpoint_free() was being called, however we did not call
v4l2_fwnode_endpoint_alloc_parse() prior which would have performed an
allocation of vep->link_frequencies anyway, so the call to kfree()
becomes a no-op.

Remove the extraneous and redundant call.

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
---
 drivers/media/i2c/max9286.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c
index e170540a5d72..03514bd27f5c 100644
--- a/drivers/media/i2c/max9286.c
+++ b/drivers/media/i2c/max9286.c
@@ -1176,7 +1176,6 @@  static int max9286_parse_dt(struct max9286_priv *priv)
 
 			priv->csi2_data_lanes =
 				vep.bus.mipi_csi2.num_data_lanes;
-			v4l2_fwnode_endpoint_free(&vep);
 
 			continue;
 		}