]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: drop unneeded pointer cast 24310/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 20 Jul 2026 06:52:05 +0000 (06:52 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 20 Jul 2026 13:45:54 +0000 (15:45 +0200)
commit489456204936438ee36a19ce21cc070c82e6c3d0
tree7c52ddf6cc86483fd307dd5b9f9175cdb7330841
parente1a6d77124dffa1e5dbf52d4fc6101181e36cf2f
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 <jelonek.jonas@gmail.com>
target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c