]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_nokia: Save a few cycles in 'nokia_enqueue()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 19 Sep 2019 19:52:08 +0000 (21:52 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 16 Oct 2019 17:26:40 +0000 (19:26 +0200)
commit8094455b1929e6eb6b9959ac54f81e49af02343b
treeab72bf521053fe4ae60b81d21ab7253cc85fd122
parent0a360659e6e4e762259a137b55860704a7875e8e
Bluetooth: hci_nokia: Save a few cycles in 'nokia_enqueue()'

'skb_pad()' a few lines above already initializes the "padded" byte to 0.
So there is no need to do it twice.

All what is needed is to increase the len of the skb. So 'skb_put(..., 1)'
is enough here.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_nokia.c