From 489456204936438ee36a19ce21cc070c82e6c3d0 Mon Sep 17 00:00:00 2001 From: Jonas Jelonek Date: Mon, 20 Jul 2026 06:52:05 +0000 Subject: [PATCH] realtek: pcs: drop unneeded pointer cast The return value of device_get_match_data was still explicitly casted to the driver-internal type. However, since this function returns 'const void *' and in C void pointers are automatically casted, this isn't needed. Thus, drop it. Link: https://github.com/openwrt/openwrt/pull/24310 Signed-off-by: Jonas Jelonek --- target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c b/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c index 5b3643364ba..538829bace5 100644 --- a/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c +++ b/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c @@ -4119,7 +4119,7 @@ static int rtpcs_probe(struct platform_device *pdev) mutex_init(&ctrl->lock); ctrl->dev = dev; - ctrl->cfg = (const struct rtpcs_config *)device_get_match_data(ctrl->dev); + ctrl->cfg = device_get_match_data(ctrl->dev); ctrl->map = syscon_node_to_regmap(np->parent); if (IS_ERR(ctrl->map)) return PTR_ERR(ctrl->map); -- 2.47.3