From patchwork Wed Jul 13 00:33:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 9226607 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 CD48460572 for ; Wed, 13 Jul 2016 00:35:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B138C26861 for ; Wed, 13 Jul 2016 00:35:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2E8927BFC; Wed, 13 Jul 2016 00:35:53 +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 CF7F426861 for ; Wed, 13 Jul 2016 00:35:52 +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 1bN88A-00083i-3n; Wed, 13 Jul 2016 00:34:26 +0000 Received: from resqmta-po-01v.sys.comcast.net ([2001:558:fe16:19:96:114:154:160]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bN887-000832-5U for linux-arm-kernel@lists.infradead.org; Wed, 13 Jul 2016 00:34:23 +0000 Received: from resomta-po-11v.sys.comcast.net ([96.114.154.235]) by resqmta-po-01v.sys.comcast.net with SMTP id N87ebxkWyucHZN87kbEJFQ; Wed, 13 Jul 2016 00:34:00 +0000 Received: from mail.gonehiking.org ([73.181.52.62]) by comcast with SMTP id N87jbnmg9BY3VN87jbq99Y; Wed, 13 Jul 2016 00:34:00 +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 1FB1E9F35B; Tue, 12 Jul 2016 18:33:59 -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] media: s5p-mfc remove unnecessary error messages Date: Tue, 12 Jul 2016 18:33:58 -0600 Message-Id: <1468370038-5364-1-git-send-email-shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.7.4 X-CMAE-Envelope: MS4wfDfNsBH+HIiAIPpWwcqtTmlQce7ZXElkUuoLGcqjGLssnK4SKLcM0s4EVu63or0ZBj4dAyb63bU5Q/R4kmTAF70JSGciqmbFuBapVaG+EhGa9wgvUrDI MpYe/OBbZxy2odIj0NP/Z9UB5dz9gi8PT3X+y8EMV/p7wTm7gnbXt6S/Ohslap8eG1dqN3Ybm1GZ0Xj6OgZlRNYm4FwlKMZqqTrkhUCN09K+GAsqtCqXdsYc 5NIYh8KdMGoGEtqQjQ52zcBhWtDT/i7td7Whu83k8vJa/m7IUpViz4HekY5SG9wkxdzOkaHs+slzuM6q24cL9t6r8n+0l57scx5njnieajvMTPBLSkqU6zJN N8QtfB9t6gTXhIw0bxmYTj4W4WhTGMPRJSk3jmPrcPTB2bBl7qjpSN1GuA84nP+EJNqcXVLSp6ORCK3NmpazY4/YaGdbEsRD3Vg1u9V32eNrHC3fqwYd2SzQ zMjHnTdKXlicduZo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160712_173423_294143_EA3233F2 X-CRM114-Status: UNSURE ( 6.23 ) 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 Removing unnecessary error messages as appropriate error code is returned. Signed-off-by: Shuah Khan --- drivers/media/platform/s5p-mfc/s5p_mfc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c index b6fde20..906f80c 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,6 @@ 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"); ret = -EBUSY; goto err_no_ctx; }