diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-08-03 13:28:39 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-08-03 16:05:13 +0200 |
commit | d1254593e705e3ef088195850959b4adc878fcee (patch) | |
tree | 38565c3c37fbfa7f48a8a5cdc977d25b9408e708 /sound/core | |
parent | a39978ed6df1bc0b29bc6820e8878b49e428426b (diff) | |
download | linux-d1254593e705e3ef088195850959b4adc878fcee.tar.bz2 |
ALSA: usb-audio: make array static const, makes object smaller
Don't populate array names_to_check on the stack but instead it
static. Makes the object code smaller by 56 bytes. Also clean
up checkpatch warning by adding extra const for names_to_check
and pointer s.
Before:
text data bss dec hex filename
103512 34380 0 137892 21aa4 ./sound/usb/mixer.o
After:
text data bss dec hex filename
103264 34572 0 137836 21a6c ./sound/usb/mixer.o
(gcc version 10.2.0)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210803122839.7143-1-colin.king@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
0 files changed, 0 insertions, 0 deletions