staging: rtl8192e: rename Len to len - style
authorHimadri Pandya <himadri18.07@gmail.com>
Sun, 13 Jan 2019 06:21:49 +0000 (22:21 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jan 2019 15:11:50 +0000 (16:11 +0100)
Fix checkpatch.pl warning:
CHECK: Avoid CamelCase: <Len>

Signed-off-by: Himadri Pandya <himadri18.07@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/dot11d.c

index 9116d16857c2979a0dda2bcd19db1ac063b81e85..be9a21062a2e96f6365ebc1f72fca62ebb978233 100644 (file)
@@ -16,7 +16,7 @@
 
 struct channel_list {
        u8      channel[32];
-       u8      Len;
+       u8      len;
 };
 
 static struct channel_list channel_array[] = {
@@ -62,10 +62,10 @@ void Dot11d_Channelmap(u8 channel_plan, struct rtllib_device *ieee)
 
        ieee->bGlobalDomain = false;
 
-       if (channel_array[channel_plan].Len != 0) {
+       if (channel_array[channel_plan].len != 0) {
                memset(GET_DOT11D_INFO(ieee)->channel_map, 0,
                       sizeof(GET_DOT11D_INFO(ieee)->channel_map));
-               for (i = 0; i < channel_array[channel_plan].Len; i++) {
+               for (i = 0; i < channel_array[channel_plan].len; i++) {
                        if (channel_array[channel_plan].channel[i] < min_chan ||
                            channel_array[channel_plan].channel[i] > max_chan)
                                break;