staging: rtl8192e: Remove constant index from channel_array[]
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sat, 18 Nov 2023 08:52:08 +0000 (09:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Nov 2023 12:46:19 +0000 (12:46 +0000)
commitbcccdf447e7edc373e48426518cf6ad65a48d234
treeabee5a22eb14a8b1836a464f0d65cf978afcd705
parent0bdd71630a51b4f230a0df86ad9f76a63f713f59
staging: rtl8192e: Remove constant index from channel_array[]

Used index of channel_array[] is always COUNTRY_CODE_WORLD_WIDE_13. Remove
index and store only used entry in channel_array. This shortens the code
and increases readability.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/379293f2b48d176aaafb023d36aac9bb057f67c7.1700296319.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/dot11d.c
drivers/staging/rtl8192e/dot11d.h
drivers/staging/rtl8192e/rtl8192e/rtl_core.c