From patchwork Thu Jul 14 14:40:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 9229971 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3878D607D0 for ; Thu, 14 Jul 2016 14:42:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20AAE27FA9 for ; Thu, 14 Jul 2016 14:42:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1534F281B7; Thu, 14 Jul 2016 14:42:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9A82127FA9 for ; Thu, 14 Jul 2016 14:42:26 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bNhom-0002d1-TZ; Thu, 14 Jul 2016 14:40:48 +0000 Received: from resqmta-po-03v.sys.comcast.net ([2001:558:fe16:19:96:114:154:162]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bNhok-0002ah-Ll for linux-arm-kernel@lists.infradead.org; Thu, 14 Jul 2016 14:40:47 +0000 Received: from resomta-po-08v.sys.comcast.net ([96.114.154.232]) by resqmta-po-03v.sys.comcast.net with SMTP id NhoIbe6Fczd8UNhoObJtsn; Thu, 14 Jul 2016 14:40:24 +0000 Received: from mail.gonehiking.org ([73.181.52.62]) by comcast with SMTP id NhoNbvy1y7fY5NhoNbsMoB; Thu, 14 Jul 2016 14:40:24 +0000 Received: from shuah-XPS-13-9350.sisa.samsung.com (shuah-xps.internal [192.168.1.87]) by mail.gonehiking.org (Postfix) with ESMTP id 18C069F22D; Thu, 14 Jul 2016 08:40:23 -0600 (MDT) From: Shuah Khan To: kyungmin.park@samsung.com, k.debski@samsung.com, jtp.park@samsung.com, mchehab@kernel.org, javier@osg.samsung.com Subject: [PATCH v2] media: s5p-mfc remove unnecessary error messages Date: Thu, 14 Jul 2016 08:40:22 -0600 Message-Id: <1468507222-5314-1-git-send-email-shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.7.4 X-CMAE-Envelope: MS4wfJyHoFHNDrpTRcXh9FSD1ZFrwdgJp3HrH4AynGtAe2K0JM7umgzgjgXcOnhlrfZsaw6vRxnNw8kRc0ga700d19ZwiXmGMtulmbFzMs98k/f0benU4WxW ukofl1ZsZjTPfLcRc2uGBTSeYPZhd2U2pmq7/WmruLYhry/agFuTGU/On29nD1sUGrsrbtZSZL2STinPfErPXbT6dg6Zb1QH5+09ADr3RQJIf3EihH0xF1mR F/9AraI/jIdq8uJ9jiWpgjLtO2GCOuCZw0mLGxYUUnrw8byEReinjmmLPUVimISIqYWp0mgMJ54VfkIot4i89FVPYf+oKwnJK7dK/GMe4pD0TMKdlnjRmk+9 UKYhNnWDbTgwNZu8vzb6Iez1+wCFJvX62PS8eeyk2cjq+7J6YMOkzqSO0YOh9LjO3P6htRsVUzJOeVEApiXkC3vlkW3PInCjepSrBBfUoORJglZyG4YKeK+8 fzdLr1a3N2Vanrnf X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160714_074046_787133_BF417E57 X-CRM114-Status: UNSURE ( 7.04 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Removed unnecessary error message as appropriate error code is returned. Changed error message into a debug. Signed-off-by: Shuah Khan Reviewed-by: Javier Martinez Canillas --- Changes since v1: - Changed EBUSY error message to a debug message. drivers/media/platform/s5p-mfc/s5p_mfc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c index b6fde20..eeb1db2 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c @@ -759,7 +759,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; } @@ -776,7 +775,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; }