]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - sound/synth/emux/emux_seq.c
ALSA: emux: Adjust one function call together with a variable assignment
[mirror_ubuntu-bionic-kernel.git] / sound / synth / emux / emux_seq.c
index 55579f6b8cb2ed36566cb0c24685d743489b1a4f..53820f75ba3eec5b9ddbc012852c4fafadd915e2 100644 (file)
@@ -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;
        }