From patchwork Tue Oct 18 23:28: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: 9383341 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 5035F607D0 for ; Tue, 18 Oct 2016 23:28:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C4CE29843 for ; Tue, 18 Oct 2016 23:28:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3FF6A2984B; Tue, 18 Oct 2016 23:28:45 +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 2EAE929843 for ; Tue, 18 Oct 2016 23:28:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933681AbcJRX23 (ORCPT ); Tue, 18 Oct 2016 19:28:29 -0400 Received: from resqmta-po-07v.sys.comcast.net ([96.114.154.166]:46625 "EHLO resqmta-po-07v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933532AbcJRX22 (ORCPT ); Tue, 18 Oct 2016 19:28:28 -0400 Received: from resomta-po-08v.sys.comcast.net ([96.114.154.232]) by resqmta-po-07v.sys.comcast.net with SMTP id wdnfb46KrqbrLwdo3b7mSm; Tue, 18 Oct 2016 23:28:27 +0000 Received: from mail.gonehiking.org ([73.181.52.62]) by resomta-po-08v.sys.comcast.net with SMTP id wdo1bLbDVGiogwdo1bus3S; Tue, 18 Oct 2016 23:28:27 +0000 Received: from localhost.localdomain (shuah-xps.internal [192.168.1.87]) by mail.gonehiking.org (Postfix) with ESMTP id 422509F309; Tue, 18 Oct 2016 17:28:25 -0600 (MDT) From: Shuah Khan To: kyungmin.park@samsung.com, kamil@wypas.org, jtp.park@samsung.com, a.hajda@samsung.com, mchehab@kernel.org Cc: Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: s5p-mfc collapse two error message into one Date: Tue, 18 Oct 2016 17:28:22 -0600 Message-Id: <20161018232822.17423-1-shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.9.3 X-CMAE-Envelope: MS4wfA5iIu8ztvTBGXJHPmy/aGWvVp/W649XAYQ1tYlTgWNuch6W6rskvLgeN1fp7MCLtxCc/SQTyd71gB5sRiYQkfo6G0e/IPCRMslISQ21Tk4olnmva4fE qBhbtvq/d/5mRyYokcBHLCiByPGwm+E9FddQZ07rmw3/6WE2j0fOJ/gplM+KV8/ZEJZoNS0evMxM+nitNaiX85KquMnZNULRxLMbMNfCxk3S0GdJ+VTmSEWE 1XDU7VlOKI153Ji1mqz7YtPHCEVr1j0vhrh3oqn9hbuE2c1H9/Mr1mDDBLksYbjNJrmmU0B97CiEg0z6FSiGfXPrRzpnG3Sxt2PP+Z6zkreP3U9riRsSyldb IntTKCu5EUtyiFdXdx3v3aRcR/aMorvRuLWHeVgrSxagHPVHCayNYKuy3Dx0WeSt19FPXkcPH0RVH13rqVmz3bkc5mLb6enisLsO0blRpS7Ut8G2lzzN5/FE qUY2ONR1e0xExjGH 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 s5p_mfc_alloc_priv_buf() prints two message to report invalid memory configuration error. Collapse them into a single message. Signed-off-by: Shuah Khan --- drivers/media/platform/s5p-mfc/s5p_mfc_opr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c b/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c index eee16a1..44d2325 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c @@ -49,8 +49,7 @@ int s5p_mfc_alloc_priv_buf(struct device *dev, dma_addr_t base, } if (b->dma < base) { - mfc_err("Invaling memory configuration!\n"); - mfc_err("Allocated buffer (%pad) is lower than memory base address (%pad)\n", + mfc_err("Invalid memory configuration - buffer (%pad) is below base memory address(%pad)\n", &b->dma, &base); dma_free_coherent(dev, b->size, b->virt, b->dma); return -ENOMEM;