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:
parent
b63a04fb51
commit
2046a2d606
2 changed files with 4 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue