Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 275efcfa authored by Quytelda Kahja's avatar Quytelda Kahja Committed by Greg Kroah-Hartman
Browse files

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: default avatarQuytelda Kahja <quytelda@tamalin.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1b873bd4
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1202,7 +1202,6 @@ int most_start_channel(struct most_interface *iface, int id,
		num_buffer = arm_mbo_chain(c, c->cfg.direction,
					   most_write_completion);
	if (unlikely(!num_buffer)) {
		pr_info("failed to allocate memory\n");
		ret = -ENOMEM;
		goto error;
	}
@@ -1381,7 +1380,6 @@ int most_register_interface(struct most_interface *iface)

	iface->p = kzalloc(sizeof(*iface->p), GFP_KERNEL);
	if (!iface->p) {
		pr_info("Failed to allocate interface instance\n");
		ida_simple_remove(&mdev_id, id);
		return -ENOMEM;
	}