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: 10075463 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 B5EB8602BD for ; Sun, 26 Nov 2017 17:42:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0B76289F5 for ; Sun, 26 Nov 2017 17:42:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94697289FA; Sun, 26 Nov 2017 17:42:29 +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=unavailable 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 431B2289F5 for ; Sun, 26 Nov 2017 17:42:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751319AbdKZRlr (ORCPT ); Sun, 26 Nov 2017 12:41:47 -0500 Received: from mout.web.de ([212.227.15.4]:59860 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751292AbdKZRlq (ORCPT ); Sun, 26 Nov 2017 12:41:46 -0500 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 Cc: LKML , kernel-janitors@vger.kernel.org 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= Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org 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; }