From patchwork Sat Jul 2 19:07:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9211017 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 C44756075F for ; Sat, 2 Jul 2016 19:07:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEBC128516 for ; Sat, 2 Jul 2016 19:07:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A34F628526; Sat, 2 Jul 2016 19:07:53 +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 488D928516 for ; Sat, 2 Jul 2016 19:07:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751993AbcGBTHh (ORCPT ); Sat, 2 Jul 2016 15:07:37 -0400 Received: from mout.web.de ([212.227.15.4]:55565 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751553AbcGBTHf (ORCPT ); Sat, 2 Jul 2016 15:07:35 -0400 Received: from [192.168.1.2] ([78.48.103.139]) by smtp.web.de (mrweb002) with ESMTPSA (Nemesis) id 0MQw1u-1asalU2Bos-00ULPS; Sat, 02 Jul 2016 21:07:26 +0200 Subject: [PATCH 2/2] Input-at32psif: Remove OOM messages in psif_probe() To: Dmitry Torokhov , linux-input@vger.kernel.org References: <566ABCD9.1060404@users.sourceforge.net> <4471604f-f401-bed9-39be-1aff2a92edf6@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: <1c2a98cb-e853-7b4c-3c5b-1e3ee70c67fb@users.sourceforge.net> Date: Sat, 2 Jul 2016 21:07:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 In-Reply-To: <4471604f-f401-bed9-39be-1aff2a92edf6@users.sourceforge.net> X-Provags-ID: V03:K0:orV8McwXqpZHTkDsyJpZjCrnakMFsGY6fScZBO+xjVG8uwQ5fTs qeh8ZWPU7V4vJgYyyipPiO8xXuH7DJwobwzmhd7PXxIPF/wAXmbSlqg8nF2fd8n/R2fOIwY TVXqah5L6lRJYMuGbFIK27HC47LcNDVF1rvpPX+TXMZB/3hga3sThlm4brxF1MqwiRk25VQ 9JytdZVAsI70uVZqXIU6Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:Ouy62ORQDFE=:pEdYTWhnKVWkLRrn55mYNv 8mfAuQgAZcrb2wwaeqtUar8soAzsEfjUg26Z0W+20qLcY3n+HA6PLD12EOrhBwcM9WqjHoG5A 8zCXsPzagJ/7gj5iQXQG/0xP39c0F0oJFI5HRjAoO/S4ANY3s9DHWOLqCbFNQ9gewCz73in/1 DJSW7Cmo9ELXmL0LmQllYVmx65g5dBN/Yks5hV+BM1ML13577eOHymtyDM8fIPhGL1+B1Z5V9 va0I2LWWOIXsbTB88zMm4hqltmxncQLfFq0KRU13ku5UoxSxhWCLE0pfOdN1WholMJtXGDLqx p0IxqiaooPXdGUW3VmJvmBe3D8zaERkKT8sy9rEDevmcBqer/i/MMhQWTMLD3YJ1ov2wV31jb pB3EWKt7cwUKGU2VbIy4u2T+ZrNS/KwBhIh7S+GIlOthvd6dGJ87Op3QMwKVgJAnIlTfAgXWB JGK2TaHewvAYY3R/oej0PZOyjtHuzj02pXUGeepCD99Yf5VypkZEcetyYu/PaAXuk+I/rgrtM 3hX/xaLc0Oeiyfjdl9L13Wp3+d1j0N/ZIDwl6Lfme2IRpNaGqzxxNg9rAsnTULqi0+tnzYRUK SJNnJbeTdLnyLA3o8DTJq1pal+rXGyOqrPSixOsDgHDlk5rr1gfNc/IBXoQ2x47OTppSI/JVm h1iH6ujECJfxLOONpduRtomuDJPKVUnAXbVAqrVg7cIDtMYjR0FxZtkIIdPcgPxAUG8mjK6/v B4c3uRi1cz1ZtGDfVp6xZ9WIQtdhaH5SwmUG7jAZQxMkI9m8Z6Prj9/TBgpKKc1AilTgkXuCr SVfq9P0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sat, 2 Jul 2016 20:34:18 +0200 Delete two debug messages because Linux will usually provide an appropriate information for a memory allocation failure. Signed-off-by: Markus Elfring --- drivers/input/serio/at32psif.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/input/serio/at32psif.c b/drivers/input/serio/at32psif.c index fcb769a..b30503d 100644 --- a/drivers/input/serio/at32psif.c +++ b/drivers/input/serio/at32psif.c @@ -210,15 +210,13 @@ static int __init psif_probe(struct platform_device *pdev) int ret; psif = kzalloc(sizeof(struct psif), GFP_KERNEL); - if (!psif) { - dev_dbg(&pdev->dev, "out of memory\n"); + if (!psif) return -ENOMEM; - } + psif->pdev = pdev; io = kzalloc(sizeof(struct serio), GFP_KERNEL); if (!io) { - dev_dbg(&pdev->dev, "out of memory\n"); ret = -ENOMEM; goto out_free_psif; }