1
0
Fork 0
alistair23-linux/drivers/net/wireless/ath/carl9170
Dan Carpenter dc76bb1e12 carl9170: clean up a clamp() call
The parameter order for clamp is supposed to be clamp(value, low, high).
When we write it in this order it's equivalent to
min(head->plcp[3] & 0x7f, 75) which works in this context where the min
is zero.  But it's not a correct use of the API.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2019-02-19 17:18:14 +02:00
..
Kconfig carl9170: Clarify kconfig text 2016-06-04 17:58:14 +03:00
Makefile
carl9170.h carl9170: fix sending URBs with wrong type when using full-speed 2014-08-11 14:43:51 -04:00
cmd.c cfg80211: remove "channel" from survey names 2015-01-08 15:27:52 +01:00
cmd.h wireless: Remove unnecessary ; from while (0) macros 2012-04-11 16:23:56 -04:00
debug.c wireless: Use octal not symbolic permissions 2018-03-27 11:01:13 +03:00
debug.h
eeprom.h
fw.c mac80211: convert HW flags to unsigned long bitmap 2015-06-10 16:05:36 +02:00
fwcmd.h carl9170: import 1.9.9 firmware headers 2016-03-07 14:11:09 +02:00
fwdesc.h carl9170: import 1.9.9 firmware headers 2016-03-07 14:11:09 +02:00
hw.h carl9170: import 1.9.9 firmware headers 2016-03-07 14:11:09 +02:00
led.c mac80211: make LED trigger names const 2015-05-05 14:21:55 +02:00
mac.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
main.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
phy.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
phy.h
rx.c carl9170: clean up a clamp() call 2019-02-19 17:18:14 +02:00
tx.c carl9170: tx: mark expected switch fall-throughs 2018-11-05 13:22:35 +02:00
usb.c carl9170: constify usb_device_id 2017-08-10 11:55:56 +03:00
version.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
wlan.h