diff options
| author | David Laight <david.laight.linux@gmail.com> | 2025-11-19 22:41:16 +0000 |
|---|---|---|
| committer | Andi Shyti <andi.shyti@kernel.org> | 2026-01-20 14:14:36 +0100 |
| commit | fae88e03f45893cfb63c608761220a489cc6e25e (patch) | |
| tree | 72ae43d8292ba2ccdec503c38c96a51786ab169f /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 949f647eff76a1e759af7b1c0295db5b5640928a (diff) | |
drivers/i2c/busses: use min() instead of min_t()
min_t(u8, a, b) casts both its arguments to u8 potentially discarding
signifinact bits.
Use min(a, b) instead as it cannot discard significant bits.
Detected by an extra check added to min_t().
Signed-off-by: David Laight <david.laight.linux@gmail.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20251119224140.8616-21-david.laight.linux@gmail.com
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
