Received: by 10.223.176.5 with SMTP id f5csp1605973wra; Wed, 7 Feb 2018 23:58:18 -0800 (PST) X-Google-Smtp-Source: AH8x225nFPkU5qfZQ26fHUsoJK6RdW2Txe0s79x2CY+4gbsZK5fvVhUyrDzJTNwE49j6Nm/oF+6c X-Received: by 10.101.91.193 with SMTP id o1mr7485356pgr.315.1518076698678; Wed, 07 Feb 2018 23:58:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518076698; cv=none; d=google.com; s=arc-20160816; b=xopDEclf3o2cuzmCAtW9USGo7hRF2PgRM+cNnWP6ca1GhnwMkZRZM/63w7VRMjMoQl /l5nCAQQOr7OrOszLywmL1kfEfyXbUzhCx5jpznENKLsn4C69Bdk7ocQIjDFcVQGnZIx bqgM6psPk+jdInW/OjJIJxeWC5rvCy4TzSO1osdca2LH0cUxJGLAhmNJb6tJpzPO0ibC f8Y0q178s04Y+YQ0UwAoGgOEF5dTQZo2cH+YSx0piu/6xhpI3ddL+VX10eUy90bUxoua Ntpg/2Q96FV/Hug8ES+Y5vb94AHgkWE9LZ4XCIkn96qo4WQEn4oT0yyLeiKWxRPo8VCE YGow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=HG+ivi87MljUbBw3GlLyTQu+BgCJ7q4NXb3tflSAIOo=; b=OZjEToLihn6zFkqGkrhzPVslrRNx9ctej4gIgwLdW8jZYsFyL+FN4g8Rv2xqlshh+p fJjA+N1ZIvnGtTEgjifNP1qJqdV66JrHIpcwsAL4YxA/GP1ttEq7UFhytuWi2XH6Y0EA BbHPknQ5Mbl6WVezDfudFS0Nu/NuqD9xvBoJ+jfH4JFR5QnCAWfUGC4ra755mBTrxdBP bkMtfzfdOggh3HE1dXj+3NSIs7cw7K/GGBWsYrS7axJNjyWzQEhqyrQPrZ10Rk7rQnnj +21k+9JPtqjlXtQrAckAZtmPHPiQpRsVCuPGVUoWGe0228t/++uvQNP1Y8TPujydfjoT /mig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=T+ZyB0Qq; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si2417016ply.512.2018.02.07.23.58.04; Wed, 07 Feb 2018 23:58:18 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=T+ZyB0Qq; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750984AbeBHH5Y (ORCPT + 99 others); Thu, 8 Feb 2018 02:57:24 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:36087 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750806AbeBHH5W (ORCPT ); Thu, 8 Feb 2018 02:57:22 -0500 Received: by mail-lf0-f67.google.com with SMTP id t79so5103805lfe.3; Wed, 07 Feb 2018 23:57:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=HG+ivi87MljUbBw3GlLyTQu+BgCJ7q4NXb3tflSAIOo=; b=T+ZyB0QqYe3cNKdbvVBBLO0wLH4BnbmLfLUeUxIm4ilIQq9NJi42K2SMuLVYMgvaGQ hSEnkdNF/wQ/ijUyPNC9yXJePV7O03bxqMVfYCI0qAzi2TkuOt0NjBilnxMITwAmg0Sl v00bT36wpTXwjbY6XglrLHvPdauD2Xs4S42adu7RjOHioYAb7rqcbI4JDGo9reIS1uPu gxoY3C9V8WQb+0lO737PW8Kxzaw3rEd63eoxwf+zSeKcedw9za71tq91TildxKlMNUdt xyxsMLSHspPZdZtXu3DPRQoOWLEGp8oZvP4hxbxWQxBfhWJcDb4tg4mIrD68d9bYp4SA DzGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=HG+ivi87MljUbBw3GlLyTQu+BgCJ7q4NXb3tflSAIOo=; b=SchtGPIc446ewCX37xjufa4US5iDNvwhlnDRftZfyycbpszLYkHxb8wSVrQkWXAde6 HN8irNwrQmf0+QyyQBrdMygH1RJLU1aBjhU3WOddiUnDNKmjGokcwYOZ3wJCOmwW+/AV Z8PfHZymkkLGmeoVY1SG3ICGOTAKFjZMuZCczBU19F3noPshSNmeXnOLBHHoWKrZGSlQ xZXoJS141cxY6shIC//uXdk1fVdLh6ShU0Z7A6DCiqiZwmbZFsjyJpCulrkZqpLeiU8y uwZocJh5vlWqnK0Ksj+/FZkC5VwRLb7uq4uMu3SDgR8GZ1u8i4EVtEo5eVbVCZfMsoDp GYpQ== X-Gm-Message-State: APf1xPBhHXW6X/BEPFyIZY0m9VffU5vXUKm+49TAcItXGSQhvZd5hpgy y1AluQNa8XXrzpMukginBrE= X-Received: by 10.46.16.210 with SMTP id 79mr5870204ljq.119.1518076641131; Wed, 07 Feb 2018 23:57:21 -0800 (PST) Received: from gmail.com ([46.194.112.145]) by smtp.gmail.com with ESMTPSA id t14sm673904ljb.97.2018.02.07.23.57.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Feb 2018 23:57:19 -0800 (PST) Date: Thu, 8 Feb 2018 08:56:28 +0100 From: Marcus Folkesson To: Christoph =?iso-8859-1?Q?B=F6hmwalder?= Cc: jikos@kernel.org, benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] hid: logitech-dj: delete unnecessary error messages Message-ID: <20180208075628.GA2860@gmail.com> References: <20180207170800.15015-1-christoph@boehmwalder.at> <20180207170800.15015-4-christoph@boehmwalder.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline In-Reply-To: <20180207170800.15015-4-christoph@boehmwalder.at> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Christoph, On Wed, Feb 07, 2018 at 06:08:00PM +0100, Christoph B=F6hmwalder wrote: > Remove some "out of memory" messages that are considered useless. >=20 > Signed-off-by: Christoph B=F6hmwalder > --- > drivers/hid/hid-logitech-dj.c | 11 +++-------- > 1 file changed, 3 insertions(+), 8 deletions(-) >=20 > 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, > =20 > dj_dev =3D kzalloc(sizeof(*dj_dev), GFP_KERNEL); > =20 > - if (!dj_dev) { > - dev_err(&djrcv_hdev->dev, "%s: failed allocating dj_device\n", > - __func__); > + if (!dj_dev) > goto dj_device_allocate_fail; > - } > =20 > dj_dev->reports_supported =3D > get_unaligned_le32(dj_report->report_params > @@ -1015,11 +1012,9 @@ static int logi_dj_probe(struct hid_device *hdev, > /* Treat interface 2 */ > =20 > djrcv_dev =3D 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 =3D hdev; > INIT_WORK(&djrcv_dev->work, delayedwork_callback); > spin_lock_init(&djrcv_dev->lock); > --=20 > 2.13.6 >=20 Thank you, but Markus Elfring already has a submitted a patch for this one. /Marcus --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEBVGi6LZstU1kwSxliIBOb1ldUjIFAlp8AqcACgkQiIBOb1ld UjLOag//YG9qkWU53hR6AJdxgXX6Zblvbum+Sc7OsgWuzy5WPbDsUFZvqpyIuCNu 5J7pdTOkxMm4DX62UM/69WdSZlR+qdSitAl14Jp7gpkwDHEDFS1c9etEtD474tkb iRnp90ubffkhY3KVABUJa0gprOXK0Yp4yfbfNN3bW3Umqe5FVjnWb+tWPQVMEAaI irsd6ckvY4w48j1ujY3v6658oLi5tp1d9isoqvpC90GubGq5O6ISEzG0nnEt923f 35d44li14XX0686mNWhgRsHZDqXaRCBzNZqVUieISIJQ2coL6c8RnGJCW/5Xj3Up z17Bd9TQmQDbKdUZwWUhn81C6ieOEAnyVeDMSELrUVNTPKKb4v00eS/OgxFensz0 zL2+fpqNcwlb2iEgt/iZA3QQt1XEizvcNBADPEF/I3Xy84Jv/hpQ8VWGCBK9FGi4 57TJSZZl60AxtsUU6M4x85/SZzLA4TB6B++a3vWy1od/LBlW//X9sZkj+xX5Q9Fa k0kkb7wXHqcgs9JKAmacIUMup1Zp0OzovWBOxrKAma12BOzOB6KCsWGZQeoPIKei SXQH0pzdqPL9EcjpJIoGhAcAPG3Spf5M6r4yDk/5gMmxSCgM7H+ehILD+cNLTmXU 2N1ezaN47omYoT8eiWzcGNiJaajuWmtBDZ9SH59GmNjp6S8KasY= =69P5 -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ--