diff options
author | 2025-02-28 16:11:20 +0100 | |
---|---|---|
committer | 2025-03-03 10:24:41 +0100 | |
commit | b1a23e3bbf5f72785164bb1c6491c4cea7369557 (patch) | |
tree | f97f8b7f8802341713ce533e9ecebd30a894666f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | usb: storage: datafab: Use const for constant arrays (diff) | |
download | linux-rng-b1a23e3bbf5f72785164bb1c6491c4cea7369557.tar.xz linux-rng-b1a23e3bbf5f72785164bb1c6491c4cea7369557.zip |
usb: storage: initializers: Use const for constant array
init_string is only read, not modified.
Declaring data as const makes it easier to see what's going on, and can
prevent unintended writes through placement in a read-only section.
Signed-off-by: Jonathan Neuschäfer <j.ne@posteo.net>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20250228-misc-const-v3-5-09b417ded9c4@posteo.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions