Received: by 10.223.176.5 with SMTP id f5csp902693wra; Wed, 7 Feb 2018 09:19:30 -0800 (PST) X-Google-Smtp-Source: AH8x224cS1psRnYssELG824yDJUD01IJBtWLt8CraVSGaFSv7pN/0/1SQdh3JkZv7QrUcIFfMVXp X-Received: by 2002:a17:902:46a:: with SMTP id 97-v6mr6572770ple.96.1518023970103; Wed, 07 Feb 2018 09:19:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518023970; cv=none; d=google.com; s=arc-20160816; b=XJjEgT8FZQ3rYtr4NS5OnTvTymzlPYWC1QJ95t3z3pVZk0ryLpGxOAUO4tcG+qs9RG yi4IU88m8rQVaJpyxkfCeMrdCOzXKd0JfQjvrRcunuVckTGsTXdKhxs1hi9ixdb379Cl AWacyLiPO+fc60PFspW0G8T9O7wBNlyO9Yvy57n5AB9wIpAniIV7O03xHkrMmQUySzHF 3drwiJjdl5qmM50iCciQ7LUP6v1eKgbbShRlsgxv5zVF17xhcH2LOBrd8t0A25NH8SDx oJPLCUzOutyHdLM008CpBhZIBNycvc59Bn9KsrjpAXOBG8Cts6CEhEcn0zh3V26YntJf uI2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=fqWS7WuBW7KSG/O4yC2g2hZoNJdKe5/PmKjn+BI0YTE=; b=T8CkP6DN9I3Qmpw2JZCzrKXjwtgEk9djKqvE5CI4F2TQ2dF+zALFVr+hjNLLK7LjDB JH2RHzpERaOvqE/N9q8UrxQuua5mq17CQTn28lPQ6yQgtJEUbCrQLVRHS8MVh0QenOeb f82DsroRoSJy9LsAeOzISrYNiVvVEEyA1bZr6emdd8/dtAHJAEKYTiLqD1QZA9VFvyVK kLWGmrX5Nr9EAIUBK2v2HFVYUykf/q+S8vWqceKSGsgCIszQqseeEhu/MRrm0Nz9sjl7 iWckgyZxzDlhzI09SI+D2DiMGRICHbzimCXvZoFZmmDstoR2V+sr2WAeyHDrlS3b/SpZ 8uCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m7si95417pgt.207.2018.02.07.09.19.15; Wed, 07 Feb 2018 09:19:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754774AbeBGRQd convert rfc822-to-8bit (ORCPT + 99 others); Wed, 7 Feb 2018 12:16:33 -0500 Received: from zimbra.linuxprofi.at ([93.83.54.199]:45630 "EHLO zimbra.linuxprofi.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754392AbeBGRQc (ORCPT ); Wed, 7 Feb 2018 12:16:32 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.linuxprofi.at (Postfix) with ESMTP id 574AF2A0198; Wed, 7 Feb 2018 18:08:21 +0100 (CET) Received: from zimbra.linuxprofi.at ([127.0.0.1]) by localhost (zimbra.linuxprofi.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id pzybdN5m5TLr; Wed, 7 Feb 2018 18:08:21 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra.linuxprofi.at (Postfix) with ESMTP id 159B22A0199; Wed, 7 Feb 2018 18:08:21 +0100 (CET) X-Virus-Scanned: amavisd-new at zimbra.linuxprofi.at Received: from zimbra.linuxprofi.at ([127.0.0.1]) by localhost (zimbra.linuxprofi.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id m8QX0m4E-Ogk; Wed, 7 Feb 2018 18:08:21 +0100 (CET) Received: from localhost (unknown [193.170.135.207]) by zimbra.linuxprofi.at (Postfix) with ESMTPSA id E86002A0198; Wed, 7 Feb 2018 18:08:20 +0100 (CET) From: =?UTF-8?q?Christoph=20B=C3=B6hmwalder?= To: jikos@kernel.org, benjamin.tissoires@redhat.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Christoph=20B=C3=B6hmwalder?= Subject: [PATCH 3/3] hid: logitech-dj: delete unnecessary error messages Date: Wed, 7 Feb 2018 18:08:00 +0100 Message-Id: <20180207170800.15015-4-christoph@boehmwalder.at> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180207170800.15015-1-christoph@boehmwalder.at> References: <20180207170800.15015-1-christoph@boehmwalder.at> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove some "out of memory" messages that are considered useless. Signed-off-by: Christoph Böhmwalder --- drivers/hid/hid-logitech-dj.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/hid/hid-logitech-dj.c b/drivers/hid/hid-logitech-dj.c index 59c54cb4bc64..ba5239840cda 100644 --- a/drivers/hid/hid-logitech-dj.c +++ b/drivers/hid/hid-logitech-dj.c @@ -414,11 +414,8 @@ static void logi_dj_recv_add_djhid_device(struct dj_receiver_dev *djrcv_dev, dj_dev = kzalloc(sizeof(*dj_dev), GFP_KERNEL); - if (!dj_dev) { - dev_err(&djrcv_hdev->dev, "%s: failed allocating dj_device\n", - __func__); + if (!dj_dev) goto dj_device_allocate_fail; - } dj_dev->reports_supported = get_unaligned_le32(dj_report->report_params @@ -1015,11 +1012,9 @@ static int logi_dj_probe(struct hid_device *hdev, /* Treat interface 2 */ djrcv_dev = kzalloc(sizeof(*djrcv_dev), GFP_KERNEL); - if (!djrcv_dev) { - dev_err(&hdev->dev, - "%s:failed allocating dj_receiver_dev\n", __func__); + if (!djrcv_dev) return -ENOMEM; - } + djrcv_dev->hdev = hdev; INIT_WORK(&djrcv_dev->work, delayedwork_callback); spin_lock_init(&djrcv_dev->lock); -- 2.13.6