]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: most: out of memory error
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 18 Aug 2015 15:18:23 +0000 (20:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:31 +0000 (18:24 -0700)
If kzalloc fails it will print lots of debugging information in the log,
no need to have another in the code.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/aim-cdev/cdev.c

index a5e8993f55e910a69b5e6681f11800168700fba8..2bc877c5c84d8d60e78c745d42831366b4e8b5d1 100644 (file)
@@ -412,7 +412,6 @@ static int aim_probe(struct most_interface *iface, int channel_id,
 
        channel = kzalloc(sizeof(*channel), GFP_KERNEL);
        if (!channel) {
-               pr_info("failed to alloc channel object\n");
                retval = -ENOMEM;
                goto error_alloc_channel;
        }