From patchwork Sun Nov 26 17:41:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10075457 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 27075602BD for ; Sun, 26 Nov 2017 17:41:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1139F289F5 for ; Sun, 26 Nov 2017 17:41:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 04A22289FA; Sun, 26 Nov 2017 17:41:46 +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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 95D8B289F5 for ; Sun, 26 Nov 2017 17:41:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 06B9389BFD; Sun, 26 Nov 2017 17:41:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [212.227.15.4]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9080C89BFD for ; Sun, 26 Nov 2017 17:41:43 +0000 (UTC) Received: from [192.168.1.3] ([78.49.168.181]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0M2us2-1fA9Rz3HJ0-00sg1I; Sun, 26 Nov 2017 18:41:34 +0100 Subject: [PATCH 1/3] video: omap: Delete an error message for a failed memory allocation in omapfb_do_probe() From: SF Markus Elfring To: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Bartlomiej Zolnierkiewicz , Tomi Valkeinen References: <1e17c727-884d-5745-2726-48dd3a53c32f@users.sourceforge.net> Message-ID: Date: Sun, 26 Nov 2017 18:41:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <1e17c727-884d-5745-2726-48dd3a53c32f@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:B+Wfrn8xlXUHpzfTeScdSdreisNxdViUdA1kKBcsUA9lRYpVDQA RrK4XydTjXpT5RzieV0it3uMREepIXuAW23Mhk3/a1Ae0tjC25ZFrBkMz23IGrCwTN9Y6GD d6cWzrZ6lJ+KuSfwwxLQy+aaLE9Pq97TB5eEb/q0Ol8Zofj6XhMtzjAxMwIVDu3jp5jZMH1 hKE7TOejfZ66OS/bhPCVw== X-UI-Out-Filterresults: notjunk:1; V01:K0:jw/Z3PxuZ9s=:NuIj+RGXaTy+nC2t5S0Zk3 LwTSTEoxhTuF1+BEX1eVyWQA92cut0hIPz3LyouwV8Tk9NXgCBmMlj+D3GXUn6nq6/8G83X5M JUJqlDGGP6OQmhnMAUx+NUpiNLae0m18j6aARt6jpt9xKoE/0IWo4Eu/LacpCzyh3WgMCaxbW 8mFtvRCVQInyzuCZ77h6nAA9MhAehay4r6jKXOYGc92odVmCKjdBcJhimGWby1yRRfb2XD9UR CvM/p5I48RjD9aTfWu4wzK8FFUoCM+TJKSgaQ0lkLe9MyD0DRuS8u0d2VBiE9MiAh6d8A4qyu V36Vtjrxix6iT2KDXlWq1bZDBjNt6UoAdsqzR7mIZXG0gg3vEDO4cocTAGSI1kkEvgDhBav/a +n+NwyHiy+GdWMabMkp16gzAfCgxq7oMnaqMP7j3kDGH5ga7+K8WhbXmm1qsv8n5umWkvsRUj GOStB1Rog3viBPo9g2TTwTnEo26crkZ0JA4Kdl63RHYjBdMRHhgU1WmfkqjYgIT227y4IJYBt mB27pm/BPiA7nibpZffBYI+cKLvMrCeDQM4ZJ95OEPDgOIYxoNmH9ZCqAthGKi4jGVQ13yBOU m7lTJeR9aeYNH79Tomgkzde1jqf+nZV/34qKrI8EOcAC+rHg19r1Wgh8ZZevK4SE57b0XsC/m Fb0W2pUcefHl9MuO6x/PmzrHEKa3B2byXv2Tz4XFhHfg1ovNSfW5iq7vcGncBti15cb9kySOt fk1UHv6maiJLAIoBM5Mha3ziiGILhJwg9f2QxNXK8RvG37ULWpUrMIWJ0Re4M028DVvfZ5WqN aS6WYa3N/xyjsOozPeoqvKYytmUiS6lMDq/xnJkjPTR54FVbe8= Cc: kernel-janitors@vger.kernel.org, LKML X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sun, 26 Nov 2017 18:09:15 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/video/fbdev/omap/omapfb_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/fbdev/omap/omapfb_main.c b/drivers/video/fbdev/omap/omapfb_main.c index 3479a47a3082..b0d91524bf6c 100644 --- a/drivers/video/fbdev/omap/omapfb_main.c +++ b/drivers/video/fbdev/omap/omapfb_main.c @@ -1647,8 +1647,6 @@ static int omapfb_do_probe(struct platform_device *pdev, fbdev = kzalloc(sizeof(struct omapfb_device), GFP_KERNEL); if (fbdev == NULL) { - dev_err(&pdev->dev, - "unable to allocate memory for device info\n"); r = -ENOMEM; goto cleanup; }