summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>2014-06-25 14:18:24 +0200
committerTakashi Iwai <tiwai@suse.de>2014-06-25 14:32:03 +0200
commita53613a67e17e5cd29963496ad249cc419688c5d (patch)
tree1a95e873e4481c270d9203b8ce37beae7385535a
parent21d7216ca2e3e1027904077bf698a83a093d5f0a (diff)
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: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/oss/mpu401.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/oss/mpu401.c b/sound/oss/mpu401.c
index f1c1dc3ada25..862735005b43 100644
--- a/sound/oss/mpu401.c
+++ b/sound/oss/mpu401.c
@@ -973,7 +973,6 @@ int attach_mpu401(struct address_info *hw_config, struct module *owner)
devc->m_busy = 0;
devc->m_state = ST_INIT;
devc->shared_irq = hw_config->always_detect;
- devc->irq = hw_config->irq;
spin_lock_init(&devc->lock);
if (devc->irq < 0)