diff options
| author | Eli Billauer <eli.billauer@gmail.com> | 2026-10-09 09:45:54 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-10-13 16:31:17 +0200 |
| commit | f82830f5607ba19978d1fc6a7a978cefb9843cfc (patch) | |
| tree | d0cc649ed148ceac2dfd21016c42aa6b4e3a558b /tools/lib/python | |
| parent | 9db7ade8f83bb6ad464e67d409048a31b0a0b596 (diff) | |
char: xillybus: Use unsigned arithmetic for jiffies differences
Change the type of jiffies-related deadline variables from long to
unsigned long, and remove unnecessary casts when computing time
remaining as deadline - jiffies.
No functional change is expected: although signed overflow is undefined
in the C standard, processors perform the calculation correctly in
practice. Using unsigned arithmetic is nevertheless the proper way to
handle jiffies differences.
Assisted-by: Deepseek:v4-pro Kimi:K2.6 ChatGPT:GPT-5.5 Claude:Sonnet-4.6
Signed-off-by: Eli Billauer <eli.billauer@gmail.com>
Link: https://patch.msgid.link/20261009074557.19996-5-eli.billauer@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
