]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: rtl8723bs: remove redundant static function
authorMichael Straube <straube.linux@gmail.com>
Mon, 30 Jun 2025 08:30:49 +0000 (10:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Jun 2025 17:15:30 +0000 (19:15 +0200)
commit49bba7ef33dca745978bb59c3a06e2da46c362b6
tree5a17ad3c78657f7f2c24f8d173387d4c426132be
parent1267d12f5e9a16d33e9bf68c6bf8d7e5b43f45d8
staging: rtl8723bs: remove redundant static function

Both wifi_regd.c and ioctl_cfg80211.c define a static function
rtw_ieee80211_channel_to_frequency() with identical functionality.
Remove the function from wifi_regd.c and make it non-static in
ioctl_cfg80211.c to avoid code duplication.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20250630083049.103734-4-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/include/ioctl_cfg80211.h
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
drivers/staging/rtl8723bs/os_dep/wifi_regd.c