Commit c997aabb authored by Markus Elfring's avatar Markus Elfring Committed by Takashi Iwai

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 5e463d6d
...@@ -144,7 +144,8 @@ snd_emux_create_port(struct snd_emux *emu, char *name, ...@@ -144,7 +144,8 @@ snd_emux_create_port(struct snd_emux *emu, char *name,
int i, type, cap; int i, type, cap;
/* Allocate structures for this channel */ /* 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"); snd_printk(KERN_ERR "no memory\n");
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment