projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f9e832
)
staging: most: Delete an error message for a failed memory allocation
author
Keyur Patel
<iamkeyur96@gmail.com>
Sun, 14 Jul 2019 17:27:06 +0000
(13:27 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 22 Jul 2019 05:34:09 +0000
(07:34 +0200)
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>
drivers/staging/most/cdev/cdev.c
patch
|
blob
|
history
diff --git
a/drivers/staging/most/cdev/cdev.c
b/drivers/staging/most/cdev/cdev.c
index d0cc0b7461073495f0949efb26636419bedd0234..724d098aeef040df908ba315bb928a41ede27f1b 100644
(file)
--- a/
drivers/staging/most/cdev/cdev.c
+++ b/
drivers/staging/most/cdev/cdev.c
@@
-463,10
+463,8
@@
static int comp_probe(struct most_interface *iface, int channel_id,
spin_lock_init(&c->unlink);
INIT_KFIFO(c->fifo);
retval = kfifo_alloc(&c->fifo, cfg->num_buffers, GFP_KERNEL);
- if (retval) {
- pr_info("failed to alloc channel kfifo");
+ if (retval)
goto err_del_cdev_and_free_channel;
- }
init_waitqueue_head(&c->wq);
mutex_init(&c->io_mutex);
spin_lock_irqsave(&ch_list_lock, cl_flags);