Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Keyur Patel <iamkeyur96@gmail.com>
Link: https://lore.kernel.org/r/20190714172708.5067-1-iamkeyur96@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Keyur Patel and committed by
Greg Kroah-Hartman
ebf256e3 5f9e832c

+1 -3
+1 -3
drivers/staging/most/cdev/cdev.c
··· 463 463 spin_lock_init(&c->unlink); 464 464 INIT_KFIFO(c->fifo); 465 465 retval = kfifo_alloc(&c->fifo, cfg->num_buffers, GFP_KERNEL); 466 - if (retval) { 467 - pr_info("failed to alloc channel kfifo"); 466 + if (retval) 468 467 goto err_del_cdev_and_free_channel; 469 - } 470 468 init_waitqueue_head(&c->wq); 471 469 mutex_init(&c->io_mutex); 472 470 spin_lock_irqsave(&ch_list_lock, cl_flags);