zd1211rw: document need for kmalloc cast
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e80be0b0ee
commit
47c0531432
1 changed files with 1 additions and 0 deletions
|
@ -117,6 +117,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;
|
||||
/* zd_addr_t is __nocast, so the kmalloc needs an explicit cast */
|
||||
a16 = (zd_addr_t *) kmalloc(count16 * (sizeof(zd_addr_t) + sizeof(u16)),
|
||||
GFP_KERNEL);
|
||||
if (!a16) {
|
||||
|
|
Loading…
Add table
Reference in a new issue