ieee802154: mcr20a: simplify a bit 'mcr20a_handle_rx_read_buf_complete()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 20 Sep 2019 19:45:33 +0000 (21:45 +0200)
committerStefan Schmidt <stefan@datenfreihafen.org>
Wed, 25 Sep 2019 06:16:51 +0000 (08:16 +0200)
commit21a045e430e56725628f361dede8a882e92469b9
tree838d1625abfaef6108a224d2b96844fbb0f17807
parent7fd25e6fc035f4b04b75bca6d7e8daa069603a76
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: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Xue Liu <liuxuenetmail@gmail.com>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
drivers/net/ieee802154/mcr20a.c