Bluetooth: Simplify preprocessor checks for BR/EDR samphores

There is no need for #if #else as BR/EDR enabled path is only special
case for LE connection. Also if there is return in if block else is not
needed.

Change-Id: Ie1a57a0e4dae6c4b79f64c14971b7e8ef009fca3
Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
Szymon Janc 2015-11-25 15:26:23 +01:00 committed by Anas Nashif
commit 2046a2d606
2 changed files with 4 additions and 8 deletions

View file

@ -386,12 +386,10 @@ static inline uint16_t conn_mtu(struct bt_conn *conn)
#if defined(CONFIG_BLUETOOTH_BREDR)
if (conn->type == BT_CONN_TYPE_BREDR || !bt_dev.le.mtu) {
return bt_dev.br.mtu;
} else {
return bt_dev.le.mtu;
}
#else
#endif /* CONFIG_BLUETOOTH_BREDR */
return bt_dev.le.mtu;
#endif
}
static struct net_buf *create_frag(struct bt_conn *conn, struct net_buf *buf)