linux-stable/drivers/staging
Oscar Carter 9f8c9f4a2e staging: vt6656: Refactor the vnt_ofdm_min_rate function
Replace the for loop by a ternary operator whose condition is an AND
bitmask against the priv->basic_rates variable.

The purpose of the for loop was to check if any of bits from RATE_54M to
RATE_6M was set, but it's not necessary to check every individual bit.
The same result can be achieved using only one single mask which
comprises all the commented bits.

This way avoid the iteration over an unnecessary for loop.

Also change the return type to bool because it's the type that this
function returns.

Signed-off-by: Oscar Carter <oscar.carter@gmx.com>
Link: https://lore.kernel.org/r/20200418134553.6415-1-oscar.carter@gmx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-23 13:38:08 +02:00
..
android staging: android: ion: Align with parenthesis 2020-04-13 08:55:28 +02:00
axis-fifo staging: axis-fifo: Fix parenthesis alignment 2020-04-13 08:55:30 +02:00
board
clocking-wizard
comedi staging: comedi: Fix line ending with a ( 2020-04-13 08:55:29 +02:00
emxx_udc
fbtft staging: fbtft: Avoid potential precedence issues 2020-03-17 12:47:24 +01:00
fieldbus
fsl-dpaa2 staging: fsl-dpaa2: ethsw: Fix parenthesis alignment 2020-04-13 08:55:30 +02:00
fwserial
gasket staging: gasket: Fix mapping refcnt leak when register/store fails 2020-04-23 13:37:25 +02:00
gdm724x staging: gdm724x: remove redundant assignment to pointer 'w' 2020-04-13 08:55:31 +02:00
goldfish
greybus staging: greybus: fix a missing-check bug in gb_lights_light_config() 2020-04-13 08:55:26 +02:00
gs_fpgaboot
iio First set of new IIO device support, features and cleanup for the 5.8 cycle 2020-04-23 11:06:48 +02:00
kpc2000 Staging: kpc2000: kpc_dma: Use spaces around operators. 2020-03-25 19:38:40 +01:00
ks7010 staging: ks7010: remove line over 80 characters 2020-03-10 10:15:23 +01:00
media Staging/IIO driver patches for 5.7-rc1 2020-03-30 14:20:41 -07:00
most Staging/IIO driver patches for 5.7-rc1 2020-03-30 14:20:41 -07:00
mt7621-dma staging: mt7621-dma: quoted string split across lines 2020-03-21 10:31:54 +01:00
mt7621-dts staging: mt7621-pci: fix PCIe interrupt mapping 2020-04-13 14:49:18 +02:00
mt7621-pci staging: mt7621-pci: initialize 'n' variable when it is declared 2020-04-16 12:33:02 +02:00
mt7621-pci-phy staging: mt7621-pci-phy: dt: bindings: remove bindings txt file 2020-04-13 14:49:17 +02:00
mt7621-pinctrl staging: mt7621-pinctrl: Use correct pointer type argument for sizeof 2020-04-23 13:36:20 +02:00
netlogic
nvec
octeon staging/octeon: fix up merge error 2020-03-30 17:22:01 -07:00
octeon-usb staging: Replace zero-length array with flexible-array member 2020-02-23 19:18:54 +01:00
olpc_dcon
pi433 staging: pi433: overlay: Convert to sugar syntax 2020-02-23 19:20:49 +01:00
qlge staging: qlge: replace deprecated apis pci_dma_* 2020-04-23 13:35:12 +02:00
ralink-gdma
rtl8188eu staging: rtl8188eu: make const char array static 2020-04-16 13:41:01 +02:00
rtl8192e staging: rtl8192e: rtl8192e: Correct misspelt variable name 2020-04-13 08:55:31 +02:00
rtl8192u Staging: rtl8192u: ieee80211: Use netdev_alert(). 2020-03-26 16:58:23 +01:00
rtl8712 staging: rtl8712: correct spelling mistake in comment 2020-04-16 12:33:03 +02:00
rtl8723bs Staging: rtl8723bs: rtw_wlan_util: Add size check of SSID IE 2020-04-23 13:27:55 +02:00
rts5208 staging: rts5208: shorten long line in func call 2020-03-19 15:11:35 +01:00
sm750fb staging: sm750fb: Make function arguments alignment match open parenthesis 2020-04-16 12:33:03 +02:00
speakup Char/Misc driver patches for 5.7-rc1 2020-04-03 13:22:40 -07:00
unisys staging: unisys: visorhba: Correct a typo in comment 2020-04-13 08:55:32 +02:00
vc04_services staging: vc04_services: bcm2835-audio: Make function arguments alignment match open parenthesis 2020-04-16 12:33:49 +02:00
vme
vt6655 Staging: vt6655: Replace camel case variable names. 2020-04-13 08:55:31 +02:00
vt6656 staging: vt6656: Refactor the vnt_ofdm_min_rate function 2020-04-23 13:38:08 +02:00
wfx staging: wfx: drop unused attribute 'join_complete_status' 2020-04-23 13:26:06 +02:00
wilc1000 staging: wilc1000: Use crc7 in lib/ rather than a private copy 2020-03-26 16:58:24 +01:00
wlan-ng staging: wlan-ng: fix use-after-free Read in hfa384x_usbin_callback 2020-03-26 15:47:26 +01:00
Kconfig staging: remove hp100 driver 2020-03-27 10:01:11 +01:00
Makefile staging: remove hp100 driver 2020-03-27 10:01:11 +01:00