projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f96153
)
ALSA: Optimize module name check
author
Takashi Iwai
<tiwai@suse.de>
Mon, 28 Oct 2013 11:54:52 +0000
(12:54 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 29 Oct 2013 10:37:42 +0000
(11:37 +0100)
module->name is a fixed array, so we can check the empty contents
straightforwardly in module_slot_match().
Spotted by coverity CID
1056786
.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/init.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/core/init.c
b/sound/core/init.c
index 6b9087115da24806e8aba244127ac8ec3a4e93f8..01a89383a0627bd8d78d5d9150d8e397fcd4f8ed 100644
(file)
--- a/
sound/core/init.c
+++ b/
sound/core/init.c
@@
-66,7
+66,7
@@
static int module_slot_match(struct module *module, int idx)
#ifdef MODULE
const char *s1, *s2;
- if (!module || !module->name || !slots[idx])
+ if (!module || !
*
module->name || !slots[idx])
return 0;
s1 = module->name;