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: 10093465 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 C5CD66035E for ; Tue, 5 Dec 2017 17:12:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADE73285B0 for ; Tue, 5 Dec 2017 17:12:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A20B22922E; Tue, 5 Dec 2017 17:12:49 +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 5F1B0285B0 for ; Tue, 5 Dec 2017 17:12:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753301AbdLERMs (ORCPT ); Tue, 5 Dec 2017 12:12:48 -0500 Received: from mout.web.de ([212.227.15.3]:51120 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753282AbdLERMl (ORCPT ); Tue, 5 Dec 2017 12:12:41 -0500 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 Cc: LKML , kernel-janitors@vger.kernel.org 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= Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org 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; }