Commit 06f0a57f authored by Shuah Khan's avatar Shuah Khan Committed by Mauro Carvalho Chehab

[media] media: s5p-mfc remove unnecessary error messages

Removed unnecessary error message as appropriate error code is returned.
Changed error message into a debug.
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
Reviewed-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 8fe47dca
...@@ -758,7 +758,6 @@ static int s5p_mfc_open(struct file *file) ...@@ -758,7 +758,6 @@ static int s5p_mfc_open(struct file *file)
/* Allocate memory for context */ /* Allocate memory for context */
ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
if (!ctx) { if (!ctx) {
mfc_err("Not enough memory\n");
ret = -ENOMEM; ret = -ENOMEM;
goto err_alloc; goto err_alloc;
} }
...@@ -775,7 +774,7 @@ static int s5p_mfc_open(struct file *file) ...@@ -775,7 +774,7 @@ static int s5p_mfc_open(struct file *file)
while (dev->ctx[ctx->num]) { while (dev->ctx[ctx->num]) {
ctx->num++; ctx->num++;
if (ctx->num >= MFC_NUM_CONTEXTS) { if (ctx->num >= MFC_NUM_CONTEXTS) {
mfc_err("Too many open contexts\n"); mfc_debug(2, "Too many open contexts\n");
ret = -EBUSY; ret = -EBUSY;
goto err_no_ctx; goto err_no_ctx;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment