projects
/
GitHub
/
moto-9609
/
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:
5e463d6
)
ALSA: emux: Adjust one function call together with a variable assignment
author
Markus Elfring
<elfring@users.sourceforge.net>
Wed, 9 Aug 2017 06:40:14 +0000
(08:40 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 10 Aug 2017 15:55:09 +0000
(17:55 +0200)
The script "checkpatch.pl" pointed information out like the following.
ERROR: do not use assignment in if condition
Thus fix the affected source code place.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/synth/emux/emux_seq.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/synth/emux/emux_seq.c
b/sound/synth/emux/emux_seq.c
index 55579f6b8cb2ed36566cb0c24685d743489b1a4f..53820f75ba3eec5b9ddbc012852c4fafadd915e2 100644
(file)
--- a/
sound/synth/emux/emux_seq.c
+++ b/
sound/synth/emux/emux_seq.c
@@
-144,7
+144,8
@@
snd_emux_create_port(struct snd_emux *emu, char *name,
int i, type, cap;
/* Allocate structures for this channel */
- if ((p = kzalloc(sizeof(*p), GFP_KERNEL)) == NULL) {
+ p = kzalloc(sizeof(*p), GFP_KERNEL);
+ if (!p) {
snd_printk(KERN_ERR "no memory\n");
return NULL;
}