From: Marcus Folkesson <marcus.folkesson@gmail.com>
To: "Christoph Böhmwalder" <christoph@boehmwalder.at>
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
Date: Thu, 8 Feb 2018 08:56:28 +0100 [thread overview]
Message-ID: <20180208075628.GA2860@gmail.com> (raw)
In-Reply-To: <20180207170800.15015-4-christoph@boehmwalder.at>
[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]
Hello Christoph,
On Wed, Feb 07, 2018 at 06:08:00PM +0100, Christoph Böhmwalder wrote:
> Remove some "out of memory" messages that are considered useless.
>
> Signed-off-by: Christoph Böhmwalder <christoph@boehmwalder.at>
> ---
> 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
>
Thank you, but Markus Elfring already has a submitted a patch for this one.
/Marcus
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-02-08 7:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-07 17:07 [PATCH 0/3] hid: logitech-dj: code style improvements Christoph Böhmwalder
2018-02-07 17:07 ` [PATCH 1/3] hid: logitech-dj: fix various style issues Christoph Böhmwalder
2018-02-07 17:07 ` [PATCH 2/3] hid: logitech-dj: fix checkpatch issues Christoph Böhmwalder
2018-02-07 17:08 ` [PATCH 3/3] hid: logitech-dj: delete unnecessary error messages Christoph Böhmwalder
2018-02-08 7:56 ` Marcus Folkesson [this message]
2018-02-08 9:06 ` Christoph Böhmwalder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180208075628.GA2860@gmail.com \
--to=marcus.folkesson@gmail.com \
--cc=benjamin.tissoires@redhat.com \
--cc=christoph@boehmwalder.at \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.