Bluetooth: AVDTP: Remove dead code
The msgtype value is created using 'hdr & 3' which means that the resulting value can never be greater than 3. This fixes Coverity CID 166771. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
9516d63836
commit
a61cf369bf
1 changed files with 0 additions and 4 deletions
|
@ -161,10 +161,6 @@ void bt_avdtp_l2cap_recv(struct bt_l2cap_chan *chan, struct net_buf *buf)
|
||||||
msgtype, sigid, tid);
|
msgtype, sigid, tid);
|
||||||
net_buf_pull(buf, sizeof(*hdr));
|
net_buf_pull(buf, sizeof(*hdr));
|
||||||
|
|
||||||
if (msgtype > BT_AVDTP_REJECT) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* validate if there is an outstanding resp expected*/
|
/* validate if there is an outstanding resp expected*/
|
||||||
if (msgtype != BT_AVDTP_CMD) {
|
if (msgtype != BT_AVDTP_CMD) {
|
||||||
if (session->req == NULL) {
|
if (session->req == NULL) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue