diff options
| author | Frans Klaver <[email protected]> | 2017-06-16 19:45:56 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-06-23 18:47:59 +0200 |
| commit | b9e8caa7a67535fc544c2504fae3e71a02cfb01a (patch) | |
| tree | 4d0a87c4aa415bb94bfaf804d46277e24dbdf22e /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
| parent | 1877e4ba2d0890244284eea101681b6f990aa2be (diff) | |
staging: fusb302: don't bitshift __le16 type
The header field in struct pd_message is declared as an __le16 type. The
data in the message is supposed to be little endian. This means we don't
have to go and shift the individual bytes into position when we're
filling the buffer, we can just copy the contents right away. As an
added benefit we don't get fishy results on big endian systems anymore.
Signed-off-by: Frans Klaver <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions