[media] media: s5p-mfc remove unnecessary error messages
authorShuah Khan <shuahkh@osg.samsung.com>
Thu, 14 Jul 2016 14:40:22 +0000 (11:40 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 24 Aug 2016 16:32:56 +0000 (13:32 -0300)
Removed unnecessary error message as appropriate error code is returned.
Changed error message into a debug.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/s5p-mfc/s5p_mfc.c

index afa80be..ffb9c53 100644 (file)
@@ -758,7 +758,6 @@ static int s5p_mfc_open(struct file *file)
        /* Allocate memory for context */
        ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
        if (!ctx) {
-               mfc_err("Not enough memory\n");
                ret = -ENOMEM;
                goto err_alloc;
        }
@@ -775,7 +774,7 @@ static int s5p_mfc_open(struct file *file)
        while (dev->ctx[ctx->num]) {
                ctx->num++;
                if (ctx->num >= MFC_NUM_CONTEXTS) {
-                       mfc_err("Too many open contexts\n");
+                       mfc_debug(2, "Too many open contexts\n");
                        ret = -EBUSY;
                        goto err_no_ctx;
                }