提交 275efcfa 编写于 作者: Q Quytelda Kahja 提交者: Greg Kroah-Hartman

staging: most: Remove unnecessary OOM messages.

It isn't necessary for the driver to log out-of-memory errors, so
these have been removed and the functions simply return -ENOMEM.
Signed-off-by: NQuytelda Kahja <quytelda@tamalin.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 1b873bd4
...@@ -1202,7 +1202,6 @@ int most_start_channel(struct most_interface *iface, int id, ...@@ -1202,7 +1202,6 @@ int most_start_channel(struct most_interface *iface, int id,
num_buffer = arm_mbo_chain(c, c->cfg.direction, num_buffer = arm_mbo_chain(c, c->cfg.direction,
most_write_completion); most_write_completion);
if (unlikely(!num_buffer)) { if (unlikely(!num_buffer)) {
pr_info("failed to allocate memory\n");
ret = -ENOMEM; ret = -ENOMEM;
goto error; goto error;
} }
...@@ -1381,7 +1380,6 @@ int most_register_interface(struct most_interface *iface) ...@@ -1381,7 +1380,6 @@ int most_register_interface(struct most_interface *iface)
iface->p = kzalloc(sizeof(*iface->p), GFP_KERNEL); iface->p = kzalloc(sizeof(*iface->p), GFP_KERNEL);
if (!iface->p) { if (!iface->p) {
pr_info("Failed to allocate interface instance\n");
ida_simple_remove(&mdev_id, id); ida_simple_remove(&mdev_id, id);
return -ENOMEM; return -ENOMEM;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册