LKML Archive on
help / color / mirror / Atom feed
From: "Ahmed S. Darwish" <>
Subject: [PATCH 2.6.20-rc3] HID-Core: Tiny patch to remove a kmalloc cast
Date: Sat, 6 Jan 2007 15:18:52 +0200	[thread overview]
Message-ID: <20070106131852.GF19020@Ahmed> (raw)

I'm really shy from the size of the patch :).

Signed-off-by: Ahmed Darwish <>

diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 18c2b3c..2fcfdbb 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -656,7 +656,7 @@ struct hid_device *hid_parse_report(__u8 *start, unsigned size)
 	for (i = 0; i < HID_REPORT_TYPES; i++)
-	if (!(device->rdesc = (__u8 *)kmalloc(size, GFP_KERNEL))) {
+	if (!(device->rdesc = kmalloc(size, GFP_KERNEL))) {
 		return NULL;

Ahmed S. Darwish

             reply	other threads:[~2007-01-06 13:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-06 13:18 Ahmed S. Darwish [this message]
2007-01-06 16:18 ` Jiri Kosina

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070106131852.GF19020@Ahmed \ \ \ \
    --subject='Re: [PATCH 2.6.20-rc3] HID-Core: Tiny patch to remove a kmalloc cast' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
on how to clone and mirror all data and code used for this inbox