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: 9229967 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 CB58A607D0 for ; Thu, 14 Jul 2016 14:40:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC6DF27FB6 for ; Thu, 14 Jul 2016 14:40:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B0BD9281D2; Thu, 14 Jul 2016 14:40:31 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 28E9327FB6 for ; Thu, 14 Jul 2016 14:40:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751380AbcGNOk1 (ORCPT ); Thu, 14 Jul 2016 10:40:27 -0400 Received: from resqmta-po-06v.sys.comcast.net ([96.114.154.165]:55658 "EHLO resqmta-po-06v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751279AbcGNOk0 (ORCPT ); Thu, 14 Jul 2016 10:40:26 -0400 Received: from resomta-po-08v.sys.comcast.net ([96.114.154.232]) by resqmta-po-06v.sys.comcast.net with SMTP id Nhmjblc8gjWBpNhoObMaJI; 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 Cc: Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org 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 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 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; }