diff options
| author | Fabio M. De Francesco <[email protected]> | 2021-09-24 14:26:57 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-09-27 17:37:12 +0200 |
| commit | a3c1900154d0d164f9f4b507d22cce754243d6b6 (patch) | |
| tree | f3a149d7db80004ddb9dde35d48ce261e9cf55b4 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 7dc3f33ccbf862d8a660e36abcfef8f8c714b006 (diff) | |
staging: r8188eu: change the type of a variable in rtw_write16()
Change the type of "data" from __le32 to __le16 in rtw_write16(). The
argument "val", which is u16, after being conditionally swapped to little
endian, is assigned to "data"; therefore, __le16 is the most suitable type
for "data". Remove the bitwise AND of "val" with 0xffff because it is
redundant. Use cpu_to_le16() because "data" is __le16.
Co-developed-by: Pavel Skripkin <[email protected]>
Signed-off-by: Pavel Skripkin <[email protected]>
Signed-off-by: Fabio M. De Francesco <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions