Merge tag 'md/4.4-rc0-fix' of git://neil.brown.name/md
[firefly-linux-kernel-4.4.55.git] / sound / core / seq / seq_ports.c
index 46ff593f618dc0b75ea66f886e051c035f2aebad..55170a20ae7237246f5560e14c5b5066bb52ba35 100644 (file)
@@ -141,10 +141,8 @@ struct snd_seq_client_port *snd_seq_create_port(struct snd_seq_client *client,
 
        /* create a new port */
        new_port = kzalloc(sizeof(*new_port), GFP_KERNEL);
-       if (! new_port) {
-               pr_debug("ALSA: seq: malloc failed for registering client port\n");
+       if (!new_port)
                return NULL;    /* failure, out of memory */
-       }
        /* init port data */
        new_port->addr.client = client->number;
        new_port->addr.port = -1;