Skip to content

Commit 6b2394b

Browse files
ColinIanKingtiwai
authored andcommitted
ALSA: usb-audio: make read-only array marker static const
Don't populate the read-only array marker on the stack but instead make it static const. Also makes the object code a little smaller. Signed-off-by: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 3026771 commit 6b2394b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/usb/pcm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ static inline void fill_playback_urb_dsd_dop(struct snd_usb_substream *subs,
12691269
unsigned int wrap = subs->buffer_bytes;
12701270
u8 *dst = urb->transfer_buffer;
12711271
u8 *src = runtime->dma_area;
1272-
u8 marker[] = { 0x05, 0xfa };
1272+
static const u8 marker[] = { 0x05, 0xfa };
12731273
unsigned int queued = 0;
12741274

12751275
/*

0 commit comments

Comments
 (0)