]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: rtl8723bs: remove unused function parameter
authorMichael Straube <straube.linux@gmail.com>
Mon, 30 Jun 2025 08:30:47 +0000 (10:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Jun 2025 17:15:30 +0000 (19:15 +0200)
The parameter 'band' of rtw_ieee80211_channel_to_frequency() in
wifi_regd.c is unused, remove it.

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

index dbd4bf5313390379d16a940f9eba1ed3bd7720b3..ac0b58a8b5d36659fdc06de0011f30972196d395 100644 (file)
@@ -41,7 +41,7 @@ static const struct ieee80211_regdomain rtw_regdom_rd = {
        }
 };
 
-static int rtw_ieee80211_channel_to_frequency(int chan, int band)
+static int rtw_ieee80211_channel_to_frequency(int chan)
 {
        /* NL80211_BAND_2GHZ */
        if (chan == 14)
@@ -82,10 +82,7 @@ static void _rtw_reg_apply_flags(struct wiphy *wiphy)
        /* channels apply by channel plans. */
        for (i = 0; i < max_chan_nums; i++) {
                channel = channel_set[i].ChannelNum;
-               freq =
-                   rtw_ieee80211_channel_to_frequency(channel,
-                                                      NL80211_BAND_2GHZ);
-
+               freq = rtw_ieee80211_channel_to_frequency(channel);
                ch = ieee80211_get_channel(wiphy, freq);
                if (ch) {
                        if (channel_set[i].ScanType == SCAN_PASSIVE)