diff options
| author | Roger Quadros <[email protected]> | 2017-04-06 13:14:28 +0300 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2017-04-11 10:58:18 +0300 |
| commit | 8261bd4e91e26d12c1ade9f94dae51629157c18b (patch) | |
| tree | 5689e72793c7d3e588ff5fd4a8202963b60b58fe /tools/perf/scripts/python | |
| parent | e35b135055e24d705736fd98c975afc46a793a09 (diff) | |
usb: dwc3: make macros safe to expression arguments
We must make sure that our macros are safe against expressions passed
as arguments. We have seen one problem where GTXFIFOSIZ(n) was failing
when passed the expression (epnum >> 1) as argument. The problem was
caused by operator precedence between >> and *.
To make sure macros are safe, we just wrap argument with () when using
it.
Signed-off-by: Roger Quadros <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions