diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2014-06-25 08:18:24 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-06-25 08:32:03 -0400 |
commit | a53613a67e17e5cd29963496ad249cc419688c5d (patch) | |
tree | 1a95e873e4481c270d9203b8ce37beae7385535a /sound/oss/mpu401.c | |
parent | 21d7216ca2e3e1027904077bf698a83a093d5f0a (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>
Diffstat (limited to 'sound/oss/mpu401.c')
-rw-r--r-- | sound/oss/mpu401.c | 1 |
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) | |||
973 | devc->m_busy = 0; | 973 | devc->m_busy = 0; |
974 | devc->m_state = ST_INIT; | 974 | devc->m_state = ST_INIT; |
975 | devc->shared_irq = hw_config->always_detect; | 975 | devc->shared_irq = hw_config->always_detect; |
976 | devc->irq = hw_config->irq; | ||
977 | spin_lock_init(&devc->lock); | 976 | spin_lock_init(&devc->lock); |
978 | 977 | ||
979 | if (devc->irq < 0) | 978 | if (devc->irq < 0) |