diff options
| author | Andy Shevchenko <[email protected]> | 2020-09-03 21:48:48 +0300 |
|---|---|---|
| committer | Marcel Holtmann <[email protected]> | 2020-09-11 08:50:49 +0200 |
| commit | 0cc62caf4c8f376f8a846271083379667cf74739 (patch) | |
| tree | 4a695bec6998e410a20f37e6bc4d1caa6d81fb8f /tools/perf/scripts/python/stackcollapse.py | |
| parent | 65a24d4c2712182a3ca450cf9f019ee5ab332533 (diff) | |
Bluetooth: hci_intel: drop strange le16_to_cpu() against u8 values
Sparse rightfully complains:
hci_intel.c:696:26: warning: cast to restricted __le16
hci_intel.c:701:26: warning: cast to restricted __le16
hci_intel.c:702:26: warning: cast to restricted __le16
hci_intel.c:703:26: warning: cast to restricted __le16
hci_intel.c:725:26: warning: cast to restricted __le16
hci_intel.c:730:26: warning: cast to restricted __le16
hci_intel.c:731:26: warning: cast to restricted __le16
hci_intel.c:732:26: warning: cast to restricted __le16
because we access non-restricted types with le16_to_cpu().
More confusion is added by using above against u8. On big-endian
architecture we will get all zeroes. I bet it's not what should be
in such case.
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions