ALSA: core: Drop superfluous error/debug messages after malloc failures
[deliverable/linux.git] / sound / core / hwdep.c
index 84244a5143cfe91fb53c5cfc1e2f9f5818d588aa..51692c8a39ea1b5fe99ab197e47c29dc16aaf86f 100644 (file)
@@ -378,10 +378,8 @@ int snd_hwdep_new(struct snd_card *card, char *id, int device,
        if (rhwdep)
                *rhwdep = NULL;
        hwdep = kzalloc(sizeof(*hwdep), GFP_KERNEL);
-       if (hwdep == NULL) {
-               dev_err(card->dev, "hwdep: cannot allocate\n");
+       if (!hwdep)
                return -ENOMEM;
-       }
 
        init_waitqueue_head(&hwdep->open_wait);
        mutex_init(&hwdep->open_mutex);
This page took 0.04342 seconds and 5 git commands to generate.