OpenCloudOS-Kernel/drivers/staging
Oscar Carter bf42304b55 staging: vt6656: Use fls instead of for loop in vnt_update_top_rates
Replace the for loops of the vnt_update_top_rates function by the fls
function.

The purpose of the two for loops is to find the most significant bit set
in a range of bits. So, they can be replace by the fls function (find
last set) with a previous mask to define the range.

This way avoid the iteration over unnecessary for loops.

The header "linux/bits.h" can be remove as it is included in the header
"linux/bitops.h".

Signed-off-by: Oscar Carter <oscar.carter@gmx.com>
Link: https://lore.kernel.org/r/20200420155246.4925-1-oscar.carter@gmx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-23 13:39:51 +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 staging: emxx_udc: Fix invalid reference error 2019-10-30 10:38:46 +01:00
fbtft staging: fbtft: Avoid potential precedence issues 2020-03-17 12:47:24 +01:00
fieldbus staging: fieldbus: anybuss: use devm_platform_ioremap_resource helper 2019-10-27 08:15:43 +01:00
fsl-dpaa2 staging: fsl-dpaa2: ethsw: Fix parenthesis alignment 2020-04-13 08:55:30 +02:00
fwserial staging: fwserial: Fix Kconfig indentation (seven spaces) 2019-11-22 11:32:54 +01:00
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 staging: netlogic: Use the correct style for SPDX License Identifier 2020-02-09 16:22:58 -08:00
nvec staging: nvec: check return value 2019-12-19 19:23:29 +01:00
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 staging: ralink-gdma: use devm_platform_ioremap_resource() to simplify code 2019-10-24 22:40:38 -04:00
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 compat_ioctl: move more drivers to compat_ptr_ioctl 2019-10-23 17:23:44 +02:00
vt6655 Staging: vt6655: Replace camel case variable names. 2020-04-13 08:55:31 +02:00
vt6656 staging: vt6656: Use fls instead of for loop in vnt_update_top_rates 2020-04-23 13:39:51 +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