staging: most: Remove unnecessary OOM messages.
authorQuytelda Kahja <quytelda@tamalin.org>
Sat, 24 Feb 2018 07:58:34 +0000 (23:58 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Mar 2018 16:21:49 +0000 (17:21 +0100)
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: Quytelda Kahja <quytelda@tamalin.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/core.c

index 3dda8d81bf0b4ad224d2a3362b92fff0c5b86189..0ab2de5ecf182ee7be7f2e51bf18c9d96ca3f10f 100644 (file)
@@ -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;
        }