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:
Johan Hedberg 2017-05-24 17:57:42 -07:00 committed by Johan Hedberg
commit a61cf369bf

View file

@ -161,10 +161,6 @@ void bt_avdtp_l2cap_recv(struct bt_l2cap_chan *chan, struct net_buf *buf)
msgtype, sigid, tid);
net_buf_pull(buf, sizeof(*hdr));
if (msgtype > BT_AVDTP_REJECT) {
return;
}
/* validate if there is an outstanding resp expected*/
if (msgtype != BT_AVDTP_CMD) {
if (session->req == NULL) {