diff options
| author | Thorsten Blum <[email protected]> | 2024-07-08 22:40:24 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-07-12 23:39:53 +0000 |
| commit | e1fb7430fcb00431087fc1c088ec9e8737cf6c7d (patch) | |
| tree | 6d9f4801057f9cdcf190bbb1520427a1e04e1840 /scripts/make_fit.py | |
| parent | test_bpf: convert comma to semicolon (diff) | |
| download | kernel-e1fb7430fcb00431087fc1c088ec9e8737cf6c7d.tar.gz kernel-e1fb7430fcb00431087fc1c088ec9e8737cf6c7d.zip | |
lib/bch.c: use swap() to improve code
Use the swap() macro to simplify the functions solve_linear_system() and
gf_poly_gcd() and improve their readability. Remove the local variable
tmp.
Fixes the following three Coccinelle/coccicheck warnings reported by
swap.cocci:
WARNING opportunity for swap()
WARNING opportunity for swap()
WARNING opportunity for swap()
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Thorsten Blum <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/make_fit.py')
0 files changed, 0 insertions, 0 deletions
