drivers: ieee802154: kw41z: remove unnecessary cast for PKT_BUFFER_RX
The cast to u16_t in not needed as PKT_BUFFER_RX already is of that type. Signed-off-by: Bogdan Davidoaia <bogdan.davidoaia@linaro.org>
This commit is contained in:
parent
58d87ff530
commit
2b1dfbcd7c
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ static inline void kw41z_rx(struct kw41z_context *kw41z, u8_t len)
|
|||
/* PKT_BUFFER_RX needs to be accessed alligned to 16 bits */
|
||||
for (i = 0; i < pkt_len; i++) {
|
||||
if (i % 2 == 0) {
|
||||
reg_val = *(((u16_t *)ZLL->PKT_BUFFER_RX) + i/2);
|
||||
reg_val = ZLL->PKT_BUFFER_RX[i/2];
|
||||
frag->data[i] = reg_val & 0xFF;
|
||||
} else {
|
||||
frag->data[i] = reg_val >> 8;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue