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: 9226611 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 4B13960871 for ; Wed, 13 Jul 2016 00:36:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D8AA27C8F for ; Wed, 13 Jul 2016 00:36:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 31E7C27BFF; Wed, 13 Jul 2016 00:36:58 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA6E1277D9 for ; Wed, 13 Jul 2016 00:36:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751893AbcGMAea (ORCPT ); Tue, 12 Jul 2016 20:34:30 -0400 Received: from resqmta-po-07v.sys.comcast.net ([96.114.154.166]:48976 "EHLO resqmta-po-07v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750784AbcGMAea (ORCPT ); Tue, 12 Jul 2016 20:34:30 -0400 Received: from resomta-po-11v.sys.comcast.net ([96.114.154.235]) by resqmta-po-07v.sys.comcast.net with SMTP id N87cbSQ20a1eGN87kbJ2my; Wed, 13 Jul 2016 00:34:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1468370040; bh=QoQuuFW06ewKLqrSEMuxhvZ3Cjwq8NVQ2i8+VI65pzA=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=AGEosAh35ZSxcuBiOtnZXJXiHEVwVJ24HttdZmFZf4NW+nzVkxjfAyIvNBJ56iK4c TmqMDL85Td4D40c6ScGpPm1wb00OGFvXSDlTL8KUzEoXTIDGEm85sOaX9ZqpcvCCuw 6eRopu7xjmFS1aNGBHKmINC4uOsqiZ2d/nQUidPR7LzPlTAF5DKgnmeTAhQizB4fvU SDWFNk1jHyeuLIr44m1hud52sH4s0HF04FWKKWiW/RHu8a0FxOlmG6x80GWRbe6E3H h7fGgbI65smc8MW1VHZsefEQTD6Y2Go7HD8vXVt0Un87IjgVkrwmueIKOPX6BGYww1 iYhFUUkllYIiw== 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 Cc: Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org 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 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.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; }