Staging: most: Do not print message if kzalloc() failed.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Sun, 21 Feb 2016 05:02:05 +0000 (10:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2016 06:34:19 +0000 (22:34 -0800)
Do not print message if kzalloc() failed.
kzalloc() has its own messages. So no need to add extra one.

Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/mostcore/core.c

index 322ee01e1f36085366debf665703410cd19c6691..7c619feb12d335556d24474f0bbc826b4880d787 100644 (file)
@@ -1259,7 +1259,6 @@ static int arm_mbo_chain(struct most_c_obj *c, int dir,
        for (i = 0; i < c->cfg.num_buffers; i++) {
                mbo = kzalloc(sizeof(*mbo), GFP_KERNEL);
                if (!mbo) {
-                       pr_info("WARN: Allocation of MBO failed.\n");
                        retval = i;
                        goto _exit;
                }