Skip to content

Commit c515291

Browse files
jwrdegoedebroonie
authored andcommitted
ASoC: Intel: atom: Fix uninitialized variable compiler warning
GCC 10 gives a "variable might be used uninitialized" warning for the block variable in sst_prepare_and_post_msg(). This is a false-positive warning, but lets fix it anyways. Signed-off-by: Hans de Goede <[email protected]> Acked-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 0bb2be2 commit c515291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/intel/atom/sst/sst_pvt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ int sst_prepare_and_post_msg(struct intel_sst_drv *sst,
223223
size_t mbox_data_len, const void *mbox_data, void **data,
224224
bool large, bool fill_dsp, bool sync, bool response)
225225
{
226+
struct sst_block *block = NULL;
226227
struct ipc_post *msg = NULL;
227228
struct ipc_dsp_hdr dsp_hdr;
228-
struct sst_block *block;
229229
int ret = 0, pvt_id;
230230

231231
pvt_id = sst_assign_pvt_id(sst);

0 commit comments

Comments
 (0)