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)
commitba7aa64fe24d293bd433b82c30d505ab8611673f
tree8dbe36cb7a5b13c108ed31d57e93b41906e5215c
parent6810fca724d2a3c08c0d2eb8510648e7a36ab592
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