Bluetooth: RFCOMM: Remove unneeded NULL checks
rfcomm_make_uih_msg() does not return NULL anymore. Change-Id: I8f49b85df8924af1e0d382e699e655a1ffe70662 Signed-off-by: Jaganath Kanakkassery <jaganathx.kanakkassery@intel.com>
This commit is contained in:
parent
2b410afac1
commit
e03f2e249e
1 changed files with 0 additions and 6 deletions
|
@ -568,9 +568,6 @@ static int rfcomm_send_msc(struct bt_rfcomm_dlc *dlc, uint8_t cr)
|
|||
uint8_t fcs;
|
||||
|
||||
buf = rfcomm_make_uih_msg(dlc, cr, BT_RFCOMM_MSC, sizeof(*msc));
|
||||
if (!buf) {
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
msc = net_buf_add(buf, sizeof(*msc));
|
||||
/* cr bit should be always 1 in MSC */
|
||||
|
@ -730,9 +727,6 @@ static int rfcomm_send_pn(struct bt_rfcomm_dlc *dlc, uint8_t cr)
|
|||
uint8_t fcs;
|
||||
|
||||
buf = rfcomm_make_uih_msg(dlc, cr, BT_RFCOMM_PN, sizeof(*pn));
|
||||
if (!buf) {
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
BT_DBG("mtu %x", dlc->mtu);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue