From 25d5736e690565af1446ace32349437dea738e57 Mon Sep 17 00:00:00 2001 From: Michael Scott Date: Fri, 19 Oct 2018 15:29:37 -0700 Subject: [PATCH] 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 --- drivers/modem/wncm14a2a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/modem/wncm14a2a.c b/drivers/modem/wncm14a2a.c index bba61d8a23..fc413a2f8a 100644 --- a/drivers/modem/wncm14a2a.c +++ b/drivers/modem/wncm14a2a.c @@ -1810,7 +1810,7 @@ static inline u8_t *wncm14a2a_get_mac(struct device *dev) ctx->mac_addr[1] = 0x10; 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; }