summaryrefslogtreecommitdiffstats
path: root/sound/synth
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-08-09 02:40:14 -0400
committerTakashi Iwai <tiwai@suse.de>2017-08-10 11:55:09 -0400
commitc997aabbd3503c61901059caf457115098f344a4 (patch)
tree8b3b531eead222765a00572b3b34bef9b380ce90 /sound/synth
parent5e463d6d292a259bd1b50c56d9b2a547fc907afd (diff)
ALSA: emux: Adjust one function call together with a variable assignment
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>
Diffstat (limited to 'sound/synth')
-rw-r--r--sound/synth/emux/emux_seq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/synth/emux/emux_seq.c b/sound/synth/emux/emux_seq.c
index 55579f6b8cb2..53820f75ba3e 100644
--- 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,
144 int i, type, cap; 144 int i, type, cap;
145 145
146 /* Allocate structures for this channel */ 146 /* Allocate structures for this channel */
147 if ((p = kzalloc(sizeof(*p), GFP_KERNEL)) == NULL) { 147 p = kzalloc(sizeof(*p), GFP_KERNEL);
148 if (!p) {
148 snd_printk(KERN_ERR "no memory\n"); 149 snd_printk(KERN_ERR "no memory\n");
149 return NULL; 150 return NULL;
150 } 151 }