From patchwork Tue Dec 5 17:12:30 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: 10093463 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 4EAED6035E for ; Tue, 5 Dec 2017 17:12:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 373B5285B0 for ; Tue, 5 Dec 2017 17:12:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C2F329781; Tue, 5 Dec 2017 17:12:41 +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 876D6285B0 for ; Tue, 5 Dec 2017 17:12:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1D1366E5D9; Tue, 5 Dec 2017 17:12:40 +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.3]) by gabe.freedesktop.org (Postfix) with ESMTPS id 51C2A6E5D9 for ; Tue, 5 Dec 2017 17:12:37 +0000 (UTC) Received: from [192.168.1.3] ([77.181.246.157]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MIN5j-1eN6Vk1Uhr-0049BZ; Tue, 05 Dec 2017 18:12:31 +0100 Subject: [PATCH 1/2] video: ARM CLCD: Delete an error message for a failed memory allocation in clcdfb_probe() From: SF Markus Elfring To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Bartlomiej Zolnierkiewicz , Russell King References: <107ed35f-1775-14e0-a7b5-20e7ee02ac16@users.sourceforge.net> Message-ID: <0ad85d10-a18f-ff02-f1f4-95452e54d32d@users.sourceforge.net> Date: Tue, 5 Dec 2017 18:12:30 +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: <107ed35f-1775-14e0-a7b5-20e7ee02ac16@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:RSTXG1g2WS0ID/r/A1HvN7hE+D2X5+ny7xUw0EmTJQUw+bKfAn5 X61IXde2n3HHkZ8HOiV2HN99hbM/Wl4982NicaZ1a76wlebyB850BVhVyvbMKz1AdBOufxI 2Dq+fkBCoLVE5h2+wuZ5MGvZJENPMGJix5JgB5vQ56MUYNZIRmddXpB9HJtKkjKl3PA6M6M Kkz5AlBPgX+Yjke3351Qw== X-UI-Out-Filterresults: notjunk:1; V01:K0:6T/+ixqsHTQ=:82UC+wV2JLi3AdlbJ2fzoL zvkKdhDm+HMuowYp8hARKvWjjjcJOwto5Tm3UNnRHKnNOMCmvkF/lwu9xdwugpm1zXKxzKNX+ V/OXUCDt2lhCF+eUtIx2wPNwdLDlrtkZDGAx8CFVOKEWzthM0vcCfp1p+sNvB8BIoA4+wiJN1 84RF4y7/6n6+iMk3tW8j5FCJv+w+JCvFyPRZIrNVxZR130y5CY+h65+apzuhqPulevHEz/vgG eZfxvVC5PfrrNqzuyDt5GATczzNNJkzJmdVHz+2/rZbiCwJQBe2WErx8sKLt3FQnuWa6vP2mj EbJIWBwcFpQCW0yTSnetpNIbrvSxt1kR5GHJ1tpoOthQwgmgcyJ+5AVYzHQh3jft8f7i3UFE1 HL3IKy4Ey3oP351Bg5NeFJWWOIgVnPzLmZGfk16TNJEa0TYRsg2bcW0bMeknSIBtjRn+rINh/ jXbnyIcISM8wUgVNvUOMgPd6DvWnAAsmM2JR4na5kd9Seq+lHqizQuCRwmJZoEvjNKhw5RWoT KcJJKnqI+NEpLNM/zsq+6tjRIwzNz1OYvsNKoUQOYrpvKwbOun1ul50LHiZCeGLNcVLzKLynt vgKmHL+7Bzv4r5lhVSGw+8fMPDJVRG7l7/3/DqeOjmbQdJ9V6mCJY0JxkdEk9VA5caePx8Ip5 Toy3o/TB8ZPxcvUu8nRcXVKzXyV6Sm87f2ydFe7A+3eMiSvmNmMIY2B6829jjz2V30yYOwCwZ OFGs+jEQxJ5g0fRAFS51iz8jx4kFUIiOjA2FleQ4aZx1RHA3z7BiifZVnozuRBiYYFahRTu+C wvJzuqZjP8rdVbqIawEiD89PNQ4sOoWinv3/WTzlpAAZWW5H0M= 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: Tue, 5 Dec 2017 17:50:11 +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/amba-clcd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/fbdev/amba-clcd.c b/drivers/video/fbdev/amba-clcd.c index 36d25190b48c..79f5ebf23fcd 100644 --- a/drivers/video/fbdev/amba-clcd.c +++ b/drivers/video/fbdev/amba-clcd.c @@ -969,7 +969,6 @@ static int clcdfb_probe(struct amba_device *dev, const struct amba_id *id) fb = kzalloc(sizeof(struct clcd_fb), GFP_KERNEL); if (!fb) { - printk(KERN_INFO "CLCD: could not allocate new clcd_fb struct\n"); ret = -ENOMEM; goto free_region; }