summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/s5p-mfc
diff options
context:
space:
mode:
authorShuah Khan2016-07-14 16:40:22 +0200
committerMauro Carvalho Chehab2016-08-24 18:32:56 +0200
commit06f0a57f35cda9d4941695472008105d34c0d626 (patch)
treea96999e483e1c77b664105f7ea4863d9e73039e6 /drivers/media/platform/s5p-mfc
parent[media] media: s5p-mfc Fix misspelled error message and checkpatch errors (diff)
downloadkernel-qcow2-linux-06f0a57f35cda9d4941695472008105d34c0d626.tar.gz
kernel-qcow2-linux-06f0a57f35cda9d4941695472008105d34c0d626.tar.xz
kernel-qcow2-linux-06f0a57f35cda9d4941695472008105d34c0d626.zip
[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: 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>
Diffstat (limited to 'drivers/media/platform/s5p-mfc')
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index afa80be77f96..ffb9c53fca2c 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -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;
}