mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
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 <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
5e463d6d29
commit
c997aabbd3
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue