diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-02-18 12:31:54 +0300 |
|---|---|---|
| committer | Kalle Valo <kvalo@codeaurora.org> | 2019-02-19 17:18:14 +0200 |
| commit | dc76bb1e12e967097048f63a76c3ff8a4f02a3b6 (patch) | |
| tree | 49ac59fc0880d6c15355a895bcfb9567318964d9 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | rtl818x_pci: Remove set but not used variables 'io_addr, mem_addr' (diff) | |
| download | linux-dc76bb1e12e967097048f63a76c3ff8a4f02a3b6.tar.gz linux-dc76bb1e12e967097048f63a76c3ff8a4f02a3b6.zip | |
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>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
