Remove unnecessary initialization of getcaps_req->flags

This commit is contained in:
João Paulo Rechi Vita 2008-08-21 17:34:27 -03:00 committed by Lennart Poettering
parent 027940b316
commit 27bc1ea423

View file

@ -185,8 +185,7 @@ static int bt_getcaps(struct userdata *u) {
pa_log_error("invalid profile argument: %s", u->profile); pa_log_error("invalid profile argument: %s", u->profile);
return -1; return -1;
} }
getcaps_req->flags = 0; getcaps_req->flags = BT_FLAG_AUTOCONNECT;
getcaps_req->flags |= BT_FLAG_AUTOCONNECT;
e = bt_audioservice_send(u->audioservice_fd, &getcaps_req->h); e = bt_audioservice_send(u->audioservice_fd, &getcaps_req->h);
if (e < 0) { if (e < 0) {