summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
diff options
context:
space:
mode:
authorJohn Youn <johnyoun@synopsys.com>2016-05-23 21:32:45 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-06-20 12:32:45 +0300
commit3de2685f0c395a56b909dbefd40fb287c9df31b2 (patch)
tree9e7deefa7c6e2fae28e63c594e690fba1e8b20b2 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
parent361572b5f7a95b341a92d34b9bf41f71bbdae34d (diff)
downloadlinux-3de2685f0c395a56b909dbefd40fb287c9df31b2.tar.xz
usb: dwc3: gadget: Fix truncated cast issue
From sparse: warning: cast truncates bits from constant value (100 becomes 0) The DWC3_TRB_NUM constant is too big for u8. Do the calculation a slightly different way that should still be optimized out for the case where DWC3_TRB_NUM == 256. Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions