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:
Bogdan Davidoaia 2017-06-16 16:55:38 +03:00 committed by Maureen Helm
commit 2b1dfbcd7c

View file

@ -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 */ /* PKT_BUFFER_RX needs to be accessed alligned to 16 bits */
for (i = 0; i < pkt_len; i++) { for (i = 0; i < pkt_len; i++) {
if (i % 2 == 0) { 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; frag->data[i] = reg_val & 0xFF;
} else { } else {
frag->data[i] = reg_val >> 8; frag->data[i] = reg_val >> 8;