|
@@ -387,10 +387,8 @@ int snd_seq_pool_init(struct snd_seq_pool *pool)
|
|
|
return 0;
|
|
|
|
|
|
pool->ptr = vmalloc(sizeof(struct snd_seq_event_cell) * pool->size);
|
|
|
- if (pool->ptr == NULL) {
|
|
|
- pr_debug("ALSA: seq: malloc for sequencer events failed\n");
|
|
|
+ if (!pool->ptr)
|
|
|
return -ENOMEM;
|
|
|
- }
|
|
|
|
|
|
/* add new cells to the free cell list */
|
|
|
spin_lock_irqsave(&pool->lock, flags);
|
|
@@ -463,10 +461,8 @@ struct snd_seq_pool *snd_seq_pool_new(int poolsize)
|
|
|
|
|
|
/* create pool block */
|
|
|
pool = kzalloc(sizeof(*pool), GFP_KERNEL);
|
|
|
- if (pool == NULL) {
|
|
|
- pr_debug("ALSA: seq: malloc failed for pool\n");
|
|
|
+ if (!pool)
|
|
|
return NULL;
|
|
|
- }
|
|
|
spin_lock_init(&pool->lock);
|
|
|
pool->ptr = NULL;
|
|
|
pool->free = NULL;
|