ALSA: core: Drop superfluous error/debug messages after malloc failures
[deliverable/linux.git] / sound / core / timer.c
index 490b489d713d4c892af0689d4eafb32cde2131c1..a9a1a047c521ff510949f87ca21c192df9497187 100644 (file)
@@ -774,10 +774,8 @@ int snd_timer_new(struct snd_card *card, char *id, struct snd_timer_id *tid,
        if (rtimer)
                *rtimer = NULL;
        timer = kzalloc(sizeof(*timer), GFP_KERNEL);
-       if (timer == NULL) {
-               pr_err("ALSA: timer: cannot allocate\n");
+       if (!timer)
                return -ENOMEM;
-       }
        timer->tmr_class = tid->dev_class;
        timer->card = card;
        timer->tmr_device = tid->device;
This page took 0.027381 seconds and 5 git commands to generate.