aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorKeller, Jacob E <[email protected]>2016-12-09 13:39:21 -0800
committerDavid S. Miller <[email protected]>2016-12-10 23:31:19 -0500
commit0266ac4536cdbf37e0bed918b97b6763aa8b84e2 (patch)
tree75cd1fbc3b65ed3bf4537841e1f96358cb876f5a /tools/perf/util/scripting-engines/trace-event-python.c
parent6246168b4a38357b135d07370464f27d4f3a68ce (diff)
i40e: don't truncate match_method assignment
The .match_method field is a u8, so we shouldn't be casting to a u16, and because it is only one byte, we do not need to byte swap anything. Just assign the value directly. This avoids issues on Big Endian architectures which would have byte swapped and then incorrectly truncated the value. Signed-off-by: Jacob Keller <[email protected]> Cc: Stephen Rothwell <[email protected]> Cc: Bimmy Pujari <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions