carl9170: clean up a clamp() call
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 18 Feb 2019 09:31:54 +0000 (12:31 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 19 Feb 2019 15:18:14 +0000 (17:18 +0200)
commitdc76bb1e12e967097048f63a76c3ff8a4f02a3b6
tree49ac59fc0880d6c15355a895bcfb9567318964d9
parentb9b81d152cfbce6c99dd5f07156b61c41f98ac05
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>
drivers/net/wireless/ath/carl9170/rx.c