Re: [PATCH] ALSA: compress_offload: Use runtime pointer in snd_compr_poll()
From: Jaroslav Kysela
Date: Wed Nov 06 2024 - 03:29:27 EST
On 06. 11. 24 8:53, Peter Ujfalusi wrote:
runtime is not used as seen with W=1 :
sound/core/compress_offload.c: In function ‘snd_compr_poll’:
sound/core/compress_offload.c:409:35: error: variable ‘runtime’ set but not used [-Werror=unused-but-set-variable]
409 | struct snd_compr_runtime *runtime;
| ^~~~~~~
Instead of dropping the runtime, use it in the function in place of
stream->runtime
Yes, it was the desired target for this change. Unfortunately unfinished. Thanks.
Reviewed-by: Jaroslav Kysela <perex@xxxxxxxx>
--
Jaroslav Kysela <perex@xxxxxxxx>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.