Remove unnecessary initialization of getcaps_req->flags
authorJoão Paulo Rechi Vita <joao.vita@gmail.com>
Thu, 21 Aug 2008 20:34:27 +0000 (17:34 -0300)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Sep 2008 22:12:08 +0000 (01:12 +0300)
src/modules/module-bt-device.c

index 30f8c70..ee78350 100644 (file)
@@ -185,8 +185,7 @@ static int bt_getcaps(struct userdata *u) {
         pa_log_error("invalid profile argument: %s", u->profile);
         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);
     if (e < 0) {