Skip to content

Commit 7156227

Browse files
charleskeepaxbroonie
authored andcommitted
ASoC: SDCA: Avoid use of uninitialised local name variable
The local name variable is accidentally left over from an earlier version of the code. Remove the variable and its uninitialised usage. Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/r/202507150415.M1tCgi3p-lkp@intel.com/ Fixes: b126394 ("ASoC: SDCA: Generic interrupt support") Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/20250715151723.2964336-3-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 3f2e4c1 commit 7156227

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sound/soc/sdca/sdca_interrupts.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ int sdca_irq_populate(struct sdca_function_data *function,
342342
int irq = control->interrupt_position;
343343
struct sdca_interrupt *interrupt;
344344
irq_handler_t handler;
345-
const char *name;
346345
int ret;
347346

348347
if (irq == SDCA_NO_INTERRUPT) {
@@ -385,7 +384,7 @@ int sdca_irq_populate(struct sdca_function_data *function,
385384
handler, interrupt);
386385
if (ret) {
387386
dev_err(dev, "failed to request irq %s: %d\n",
388-
name, ret);
387+
interrupt->name, ret);
389388
return ret;
390389
}
391390
}

0 commit comments

Comments
 (0)