Commit a53613a6 authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Takashi Iwai

sound: oss: mpu401.c: Cleaning up variable is set more than once

A struct member variable is set to the same value more than once

This was found using a static code analysis program called cppcheck.
Signed-off-by: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 21d7216c
...@@ -973,7 +973,6 @@ int attach_mpu401(struct address_info *hw_config, struct module *owner) ...@@ -973,7 +973,6 @@ int attach_mpu401(struct address_info *hw_config, struct module *owner)
devc->m_busy = 0; devc->m_busy = 0;
devc->m_state = ST_INIT; devc->m_state = ST_INIT;
devc->shared_irq = hw_config->always_detect; devc->shared_irq = hw_config->always_detect;
devc->irq = hw_config->irq;
spin_lock_init(&devc->lock); spin_lock_init(&devc->lock);
if (devc->irq < 0) if (devc->irq < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment