projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21d7216
)
sound: oss: mpu401.c: Cleaning up variable is set more than once
author
Rickard Strandqvist
<rickard_strandqvist@spectrumdigital.se>
Wed, 25 Jun 2014 12:18:24 +0000
(14:18 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 25 Jun 2014 12:32:03 +0000
(14:32 +0200)
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>
sound/oss/mpu401.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/oss/mpu401.c
b/sound/oss/mpu401.c
index f1c1dc3ada25d1ef61731e8f9a2145ff7c3e04ae..862735005b4318eff1cfb9ad7af95385c3f7a405 100644
(file)
--- 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)