]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Create function to return the ERTM header size
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Tue, 29 May 2012 16:29:16 +0000 (13:29 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Jun 2012 03:34:15 +0000 (06:34 +0300)
commit2c6d4f1bffb660f0c8ca0a2cfeb7e211c7c5e535
tree8dbe36cb7a5b13c108ed31d57e93b41906e5215c
parent8f0806bf18027d9e539f03fdd5e87e149a27e174
Bluetooth: Create function to return the ERTM header size

Simplify the handling of different ERTM header size. We were the same
check in some places of the code, and more is expected to come, so just
replace them with a function.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Acked-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/l2cap_core.c