netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] zd1211rw: Readd zd_addr_t cast
@ 2007-02-10  1:27 Daniel Drake
       [not found] ` <20070210012718.3B6E87B409F-k/4jFdqg8LLlyo9zxV8I99HuzzzSOjJt@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Drake @ 2007-02-10  1:27 UTC (permalink / raw)
  To: linville; +Cc: netdev, linux-wireless, kune, rpjday

Robert P.J. Day's recent commit ("getting rid of all casts of k[cmz]alloc()
calls") introduced a sparse warning for zd1211rw, related to our type-checking
of addresses.

	zd_chip.c:116:15: warning: implicit cast to nocast type

This patch readds the type cast, it is correct.

Signed-off-by: Daniel Drake <dsd@gentoo.org>

Index: linux/drivers/net/wireless/zd1211rw/zd_chip.c
===================================================================
--- linux.orig/drivers/net/wireless/zd1211rw/zd_chip.c
+++ linux/drivers/net/wireless/zd1211rw/zd_chip.c
@@ -113,7 +113,7 @@ int zd_ioread32v_locked(struct zd_chip *
 
 	/* Allocate a single memory block for values and addresses. */
 	count16 = 2*count;
-	a16 = kmalloc(count16 * (sizeof(zd_addr_t) + sizeof(u16)),
+	a16 = (zd_addr_t *) kmalloc(count16 * (sizeof(zd_addr_t) + sizeof(u16)),
 		                   GFP_NOFS);
 	if (!a16) {
 		dev_dbg_f(zd_chip_dev(chip),

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-02-10 19:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-10  1:27 [PATCH] zd1211rw: Readd zd_addr_t cast Daniel Drake
     [not found] ` <20070210012718.3B6E87B409F-k/4jFdqg8LLlyo9zxV8I99HuzzzSOjJt@public.gmane.org>
2007-02-10  6:02   ` Michael Buesch
2007-02-10  7:36     ` Ulrich Kunitz
2007-02-10 18:51     ` Joe Perches
2007-02-10 19:56       ` Ulrich Kunitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).