mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-17 09:14:32 +08:00
Remove unnecessary hs->sco check
The headset_request_stream function already handles the PLAYING state in the beginning so hs->sco is guaranteed to be NULL later on.
This commit is contained in:
parent
65aaf349eb
commit
894019b324
@ -2305,10 +2305,8 @@ unsigned int headset_request_stream(struct audio_device *dev,
|
||||
if (rfcomm_connect(dev, cb, user_data, &id) < 0)
|
||||
return 0;
|
||||
hs->auto_dc = TRUE;
|
||||
} else if (hs->sco == NULL) {
|
||||
if (sco_connect(dev, cb, user_data, &id) < 0)
|
||||
return 0;
|
||||
}
|
||||
} else if (sco_connect(dev, cb, user_data, &id) < 0)
|
||||
return 0;
|
||||
|
||||
hs->pending->target_state = HEADSET_STATE_PLAYING;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user