rymanluk commented on code in PR #1567:
URL: https://github.com/apache/mynewt-nimble/pull/1567#discussion_r1273391517
##########
nimble/host/src/ble_l2cap_coc.c:
##########
@@ -341,7 +341,8 @@ ble_l2cap_coc_chan_alloc(struct ble_hs_conn *conn, uint16_t
psm, uint16_t mtu,
chan->coc_rx.sdus[i] = NULL;
}
chan->coc_rx.current_sdu_idx = 0;
- chan->coc_rx.next_sdu_alloc_idx = chan->coc_rx.sdus[0] == NULL ? 0 : 1;
+ chan->coc_rx.next_sdu_alloc_idx = chan->coc_rx.sdus[0] == NULL ||
Review Comment:
Thanks.
technically it is ok, but lets try to make it look nicer using if () Ok ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]