]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Staging: rtl8192e: Rename variable IsPassiveChannel
authorTree Davies <tdavies@darkphysics.net>
Tue, 21 May 2024 03:16:48 +0000 (20:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2024 11:16:19 +0000 (13:16 +0200)
Rename variable IsPassiveChannel to is_passive_channel
to fix checkpatch warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20240521031718.17852-2-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_rx.c

index ee469c9118b8b49028833652dfe860a7a891a4f6..4a0db2dfd5e927fa486607c4aa849f09c41bb214 100644 (file)
@@ -2356,7 +2356,7 @@ static inline void update_network(struct rtllib_device *ieee,
        dst->bss_ccx_ver_number = src->bss_ccx_ver_number;
 }
 
-static int IsPassiveChannel(struct rtllib_device *rtllib, u8 channel)
+static int is_passive_channel(struct rtllib_device *rtllib, u8 channel)
 {
        if (channel > MAX_CHANNEL_NUMBER) {
                netdev_info(rtllib->dev, "%s(): Invalid Channel\n", __func__);
@@ -2432,7 +2432,7 @@ static inline void rtllib_process_probe_response(
                goto free_network;
 
        if (ieee80211_is_probe_resp(frame_ctl)) {
-               if (IsPassiveChannel(ieee, network->channel)) {
+               if (is_passive_channel(ieee, network->channel)) {
                        netdev_info(ieee->dev,
                                    "GetScanInfo(): For Global Domain, filter probe response at channel(%d).\n",
                                    network->channel);