]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: storage: realtek_cr: Use const for constant arrays
authorJonathan Neuschäfer <j.ne@posteo.net>
Fri, 28 Feb 2025 15:11:21 +0000 (16:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Mar 2025 09:24:41 +0000 (10:24 +0100)
commit024ad5424c42a49c5d1e4dd0b094db9efad354c3
tree9cf8c621e18f570697cc1d7431d668e574f20a32
parentb1a23e3bbf5f72785164bb1c6491c4cea7369557
usb: storage: realtek_cr: Use const for constant arrays

These arrays are only read, never 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-6-09b417ded9c4@posteo.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/realtek_cr.c