diff options
author | 2024-12-02 16:11:45 +0800 | |
---|---|---|
committer | 2024-12-22 11:29:52 +0100 | |
commit | 4db9f52fa9b81addc412330957bb7a657d2f1ffb (patch) | |
tree | dae0c42ad79f1bbff2292310e0f224ab663a3316 /scripts/generate_rust_analyzer.py | |
parent | fs: use a consume fence in mnt_idmap() (diff) | |
download | wireguard-linux-4db9f52fa9b81addc412330957bb7a657d2f1ffb.tar.xz wireguard-linux-4db9f52fa9b81addc412330957bb7a657d2f1ffb.zip |
fs: fc_log replace magic number 7 with ARRAY_SIZE()
Replace the hardcoded value `7` in `put_fc_log()` with `ARRAY_SIZE`.
This improves maintainability by ensuring the loop adapts to changes
in the buffer size.
Signed-off-by: Guo Weikang <guoweikang.kernel@gmail.com>
Link: https://lore.kernel.org/r/20241202081146.1031780-1-guoweikang.kernel@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions