From patchwork Sat Nov 25 16:05:26 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: 10074853 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 B3F30602BC for ; Sat, 25 Nov 2017 16:05:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3DE528F5A for ; Sat, 25 Nov 2017 16:05:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 96AE828F67; Sat, 25 Nov 2017 16:05: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 3EA1728F5A for ; Sat, 25 Nov 2017 16:05:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8B2CE6E11E; Sat, 25 Nov 2017 16:05: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 [217.72.192.78]) by gabe.freedesktop.org (Postfix) with ESMTPS id 25F926E11E for ; Sat, 25 Nov 2017 16:05:43 +0000 (UTC) Received: from [192.168.1.3] ([92.228.138.71]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MWj2N-1ecnaG3jWV-00Xwwr; Sat, 25 Nov 2017 17:05:28 +0100 Subject: [PATCH 1/2] video: ssd1307fb: Delete an error message for a failed memory allocation in ssd1307fb_probe() From: SF Markus Elfring To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Arnd Bergmann , Bartlomiej Zolnierkiewicz , Bastian Stender , Jyri Sarha , Tomi Valkeinen References: <9433118e-4c2b-db31-7064-df692a99c1b2@users.sourceforge.net> Message-ID: <5a697bfd-f2be-7724-c0c4-55dd98ee5006@users.sourceforge.net> Date: Sat, 25 Nov 2017 17:05:26 +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: <9433118e-4c2b-db31-7064-df692a99c1b2@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:dOkbFjquR+YxkeWDRRg+0H2PQdNsdk+1FUoIHG0hriSR4Cragy9 LVvAs1sDqp/LSKyGxjDUQyDXLq6hC+XJntUW2BXAbM4fRUQbXUJJpT6Z5ksfPIFYBmuQLET K+qeoESKZszKS4efywfkaZQFMqpSl5es5RWcW3/EOAw1tAEvfMK25LmglNDibcjirx0dYsT 8o/EamPuMjLHj3+cgNdaw== X-UI-Out-Filterresults: notjunk:1; V01:K0:y4Phl8+o7+I=:/lim6Lv/eAwb9ZZPKNmXXn 9zn96lXm7EVT7Or4Z1qLq4dsObJusaznWSDVaPPgBhTuIpQU6n/9eVdAdzUdEqdwRY7yMwyTL +LghMMweVePv7ccUhhAmEYvcvz0j+hmnP2DEw1WPNPolbMU8VFfLMKCmDqgcWxBkJCz9IoGsd snZ0Lf0Hu6gukgi61tGPGQzv+6rlKaruL8foZ3NmxlTvcM6gpbmc3tEde8xppcNd9AXRGJ12j 7Nc/VOyYKv/CoODluMOtl6puIExlRozvvPUQB0qLxa1rTvgOfTEDZOOsgOA+2lZndN3CCIE9C DJ6CGKAlJHvFubLlh7DJqoCzxl2CQ4uYZ+UYLltC0nTHscPa6sRc6AkQQJZiD58ahE3ILw8Re wr5OH+j7Q42HGUosylPrasik6GryJOsy0148RSPXaYgifjHRPPS7jPOCoW+6LnUGucQuBv1GZ cvpreTYL7Z0uBOeipUHKPQNE3UCZp9/zYb5o7ZXlGjkl77U2gweK7Fnppl02HzGwd+ZahUFD7 H6+IMZQ3fjBDf2YthuPQkrc6s4joS7IR28IyCSwHwfVGoMWzSuEnxZWmBHA9XhyiNPaBFPnu2 X6Q31dR+u6OQRvf0XXI90HJoHBwVdXfp6YEBCCcOKH+cl/jzjSa2wdLuQsF5kIXxQrsM7ubyF fN7/6wrK+5XZd/BYxSkj675POJHvSsaHq4ierJf+Q6ehE4e0r50y/0mDtdHz9zzOLwkwvQnVS Us4+QV5dHJLhd2ddjWan1s9qQDqV/DVnsxkJRstSR0u2mj1qqcezcadqaaReCkX0K5v+Z1FPE OcCGl6pJIyS4RE8VKn1NLOMSXL3tu+e5uNMGg+BmffOjw5QUSQ= 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: Sat, 25 Nov 2017 16:45:56 +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/ssd1307fb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index f599520374dd..fb0ef1922d49 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c @@ -630,7 +630,6 @@ static int ssd1307fb_probe(struct i2c_client *client, ssd1307fb_defio = devm_kzalloc(&client->dev, sizeof(struct fb_deferred_io), GFP_KERNEL); if (!ssd1307fb_defio) { - dev_err(&client->dev, "Couldn't allocate deferred io.\n"); ret = -ENOMEM; goto fb_alloc_error; }