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: 10074857 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 79513602BC for ; Sat, 25 Nov 2017 16:06:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B09C28F5A for ; Sat, 25 Nov 2017 16:06:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E78C28F67; Sat, 25 Nov 2017 16:06:01 +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 11E5C28F5A for ; Sat, 25 Nov 2017 16:06:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751724AbdKYQFr (ORCPT ); Sat, 25 Nov 2017 11:05:47 -0500 Received: from mout.web.de ([217.72.192.78]:54832 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751591AbdKYQFq (ORCPT ); Sat, 25 Nov 2017 11:05:46 -0500 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 Cc: LKML , kernel-janitors@vger.kernel.org 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= 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: 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; }