drivers: modem: wncm14a2a: fix void ptr math warning
I have no idea what I was thinking when I wrote this. But, it's an easy fix to remove the void * entirely. Signed-off-by: Michael Scott <mike@foundries.io>
This commit is contained in:
parent
38bdc9f532
commit
25d5736e69
|
@ -1810,7 +1810,7 @@ static inline u8_t *wncm14a2a_get_mac(struct device *dev)
|
||||||
ctx->mac_addr[1] = 0x10;
|
ctx->mac_addr[1] = 0x10;
|
||||||
|
|
||||||
UNALIGNED_PUT(sys_cpu_to_be32(sys_rand32_get()),
|
UNALIGNED_PUT(sys_cpu_to_be32(sys_rand32_get()),
|
||||||
(u32_t *) ((void *)ctx->mac_addr+2));
|
(u32_t *)(ctx->mac_addr + 2));
|
||||||
|
|
||||||
return ctx->mac_addr;
|
return ctx->mac_addr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue