Skip to content

Commit 9a4bf1f

Browse files
ColinIanKingbroonie
authored andcommitted
ASoC: tas2781: make const read-only array magic_number static
Don't populate the const read-only array magic_number on the stack, instead make it static const. Signed-off-by: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 70227e1 commit 9a4bf1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/tas2781-fmwlib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ static int fw_parse_header(struct tasdevice_priv *tas_priv,
17571757
{
17581758
struct tasdevice_dspfw_hdr *fw_hdr = &(tas_fmw->fw_hdr);
17591759
struct tasdevice_fw_fixed_hdr *fw_fixed_hdr = &(fw_hdr->fixed_hdr);
1760-
const unsigned char magic_number[] = { 0x35, 0x35, 0x35, 0x32 };
1760+
static const unsigned char magic_number[] = { 0x35, 0x35, 0x35, 0x32 };
17611761
const unsigned char *buf = (unsigned char *)fmw->data;
17621762

17631763
if (offset + 92 > fmw->size) {

0 commit comments

Comments
 (0)