From: Marcel Holtmann Date: Mon, 12 Jan 2015 03:33:31 +0000 (-0800) Subject: Bluetooth: Simplify packet copy in hci_send_to_monitor function X-Git-Tag: fixes-v4.0-rc1~150^2~184^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b531294b02454b6aa189f99ea8982bdd0d7b3bb;p=pandora-kernel.git Bluetooth: Simplify packet copy in hci_send_to_monitor function Within the monitor functionality, the global atomic variable called monitor_promisc ensures that no memory allocation happend when there is actually no client listening. This means it is safe to just create a copy of the skb since it is guaranteed that at least one client exists. No extra checks needed. Signed-off-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- Reading git-diff-tree failed