diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2015-01-12 06:33:31 +0300 |
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@intel.com> | 2015-01-12 12:26:04 +0300 |
| commit | 2b531294b02454b6aa189f99ea8982bdd0d7b3bb (patch) | |
| tree | 8c62ad0336b5dbf3c1dea02e2171699a0a0f2eea /tools/perf/scripts/python/syscall-counts.py | |
| parent | 15762fa772bf91687e2f2a6afc6df975ee2a6f70 (diff) | |
| download | linux-2b531294b02454b6aa189f99ea8982bdd0d7b3bb.tar.xz | |
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 <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
