Commit:     44956855ff9e21f58633a628b6b64e549a2fa0ed
Parent:     d9c7e0f20806795f7823e55ad3663c8828d51b5a
Author:     Daniel Drake <[EMAIL PROTECTED]>
AuthorDate: Sat Feb 10 01:27:18 2007 +0000
Committer:  John W. Linville <[EMAIL PROTECTED]>
CommitDate: Wed Feb 14 15:45:04 2007 -0500

    [PATCH] zd1211rw: Readd zd_addr_t cast
    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 <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
 drivers/net/wireless/zd1211rw/zd_chip.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/zd1211rw/zd_chip.c 
index 78ea72f..953ac3a 100644
--- a/drivers/net/wireless/zd1211rw/zd_chip.c
+++ b/drivers/net/wireless/zd1211rw/zd_chip.c
@@ -101,7 +101,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 = kmalloc(count16 * (sizeof(zd_addr_t) + sizeof(u16)),
+       a16 = (zd_addr_t *) kmalloc(count16 * (sizeof(zd_addr_t) + sizeof(u16)),
        if (!a16) {
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to