projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc73b20
)
wifi: ar5523: Remove unnecessary (void*) conversions
author
Wu Yunchuan
<yunchuan@nfschina.com>
Tue, 19 Sep 2023 04:49:06 +0000
(12:49 +0800)
committer
Kalle Valo
<quic_kvalo@quicinc.com>
Thu, 21 Sep 2023 08:08:21 +0000
(11:08 +0300)
No need cast (void*) to (struct ar5523_cmd_hdr *).
Signed-off-by: Wu Yunchuan <yunchuan@nfschina.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link:
https://lore.kernel.org/r/20230919044906.523189-1-yunchuan@nfschina.com
drivers/net/wireless/ath/ar5523/ar5523.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ar5523/ar5523.c
b/drivers/net/wireless/ath/ar5523/ar5523.c
index
19f6122
..
43e0db7
100644
(file)
--- a/
drivers/net/wireless/ath/ar5523/ar5523.c
+++ b/
drivers/net/wireless/ath/ar5523/ar5523.c
@@
-256,7
+256,7
@@
static int ar5523_cmd(struct ar5523 *ar, u32 code, const void *idata,
/* always bulk-out a multiple of 4 bytes */
xferlen = (sizeof(struct ar5523_cmd_hdr) + ilen + 3) & ~3;
- hdr =
(struct ar5523_cmd_hdr *)
cmd->buf_tx;
+ hdr = cmd->buf_tx;
memset(hdr, 0, sizeof(struct ar5523_cmd_hdr));
hdr->len = cpu_to_be32(xferlen);
hdr->code = cpu_to_be32(code);