Commit ebf256e3 authored by Keyur Patel's avatar Keyur Patel Committed by Greg Kroah-Hartman

staging: most: Delete an error message for a failed memory allocation

The kfifo_alloc() failure generates enough information and doesn't need
to be accompanied by another error statement.
Signed-off-by: default avatarKeyur Patel <iamkeyur96@gmail.com>
Link: https://lore.kernel.org/r/20190714172708.5067-1-iamkeyur96@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5f9e832c
...@@ -463,10 +463,8 @@ static int comp_probe(struct most_interface *iface, int channel_id, ...@@ -463,10 +463,8 @@ static int comp_probe(struct most_interface *iface, int channel_id,
spin_lock_init(&c->unlink); spin_lock_init(&c->unlink);
INIT_KFIFO(c->fifo); INIT_KFIFO(c->fifo);
retval = kfifo_alloc(&c->fifo, cfg->num_buffers, GFP_KERNEL); retval = kfifo_alloc(&c->fifo, cfg->num_buffers, GFP_KERNEL);
if (retval) { if (retval)
pr_info("failed to alloc channel kfifo");
goto err_del_cdev_and_free_channel; goto err_del_cdev_and_free_channel;
}
init_waitqueue_head(&c->wq); init_waitqueue_head(&c->wq);
mutex_init(&c->io_mutex); mutex_init(&c->io_mutex);
spin_lock_irqsave(&ch_list_lock, cl_flags); spin_lock_irqsave(&ch_list_lock, cl_flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment