diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2024-10-03 07:46:50 -0700 |
---|---|---|
committer | Benjamin Tissoires <bentiss@kernel.org> | 2024-10-04 10:37:09 +0200 |
commit | ae9b956cb26c0fd5a365629f2d723ab2fb14df79 (patch) | |
tree | 9b0449204bd2ecffb005154975812483234167e7 /scripts/bpf_doc.py | |
parent | 61595012f28036a58293df5a2ab75f80ca15c327 (diff) |
HID: simplify snto32()
snto32() does exactly what sign_extend32() does, but handles
potentially malformed data coming from the device. Keep the checks,
but then call sign_extend32() to perform the actual conversion.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://patch.msgid.link/20241003144656.3786064-1-dmitry.torokhov@gmail.com
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions