Skip to content

Commit

Permalink
ALSA: usb-audio: localize one-referrer variable
Browse files Browse the repository at this point in the history
When accessed by one referrer inner a file, variables should have static
qualifier to declare local-linkage.

This commit fixes the bug. Sparse generated below warnings.
sound/usb/mixer_us16x08.c:156:13: warning: duplicate const
sound/usb/mixer_us16x08.c:156:18: warning: symbol 'route_names' was not declared. Should it be static?

Fixes: d2bb390 ("ALSA: usb-audio: Tascam US-16x08 DSP mixer quirk")
Signed-off-by: Takashi Sakamoto <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
takaswie authored and tiwai committed Feb 20, 2017
1 parent 4e25d30 commit 02ed051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/usb/mixer_us16x08.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ static const char ratio_map[] = {
};

/* route enumeration names */
const const char *route_names[] = {
static const char *const route_names[] = {
"Master Left", "Master Right", "Output 1", "Output 2", "Output 3",
"Output 4", "Output 5", "Output 6", "Output 7", "Output 8",
};
Expand Down

0 comments on commit 02ed051

Please sign in to comment.