[KJ] [PATCH 1/1] drivers/net/wireless/zd1211rw/zd_chip.c unnecessary casts

3 views
Skip to first unread message

Masami Ichikawa

unread,
Oct 19, 2007, 12:40:04 PM10/19/07
to kernel-...@lists.linux-foundation.org
Hello.
The patch removes an unnecessary cast.

Signed-off-by: Masami Ichikawa <masa...@gmail.com>
---
diff --git a/drivers/net/wireless/zd1211rw/zd_chip.c
b/drivers/net/wireless/zd1211rw/zd_chip.c
index f831b68..35d16e8 100644
--- a/drivers/net/wireless/zd1211rw/zd_chip.c
+++ b/drivers/net/wireless/zd1211rw/zd_chip.c
@@ -114,8 +114,7 @@ int zd_ioread32v_locked(struct zd_chip *chip, u32
*values, const zd_addr_t *addr

/* Allocate a single memory block for values and addresses. */
count16 = 2*count;
- a16 = (zd_addr_t *) kmalloc(count16 * (sizeof(zd_addr_t) + sizeof(u16)),
- GFP_KERNEL);
+ a16 = kmalloc(count16 * (sizeof(zd_addr_t) + sizeof(u16)), GFP_KERNEL);
if (!a16) {
dev_dbg_f(zd_chip_dev(chip),
"error ENOMEM in allocation of a16\n");

Cheers,
--
/*
* Masami Ichikawa
* mailto: masa...@gmail.com
*/
_______________________________________________
REMINDER: this mailing list moved to vger.kernel.org and current one will be discontinued soon.
To resubscribe, send email to majo...@vger.kernel.org with
&quot;subscribe kernel-janitors&quot; in message body and follow instructions.

Kernel-janitors mailing list
Kernel-...@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors

Reply all
Reply to author
Forward
0 new messages