Skip to content
Commit 21a045e4 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Stefan Schmidt
Browse files

ieee802154: mcr20a: simplify a bit 'mcr20a_handle_rx_read_buf_complete()'



Use a 'skb_put_data()' variant instead of rewritting it.
The __skb_put_data variant is safe here. It is obvious that the skb can
not overflow. It has just been allocated a few lines above with the same
'len'.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: default avatarXue Liu <liuxuenetmail@gmail.com>
Signed-off-by: default avatarStefan Schmidt <stefan@datenfreihafen.org>
parent 7fd25e6f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment