OSDN Git Service

Remove redundant call to bluetooth_init().
authorNick Pelly <npelly@google.com>
Wed, 30 Sep 2009 18:35:21 +0000 (11:35 -0700)
committerNick Pelly <npelly@google.com>
Wed, 30 Sep 2009 18:35:21 +0000 (11:35 -0700)
This is a cleanup to Ian Kent's preceeding patchset.

Change-Id: I8ff00530fdd337873ff898b7fd9009b0fc13f0b4

audio/liba2dp.c

index 4f2dda0..d8f5bc8 100755 (executable)
@@ -1001,11 +1001,6 @@ static void* a2dp_thread(void *d)
                }
 
                switch (command) {
-                       case A2DP_CMD_INIT:
-                               if (data->state != A2DP_STATE_NONE)
-                                       break;
-                               bluetooth_init(data);
-                               break;
                        case A2DP_CMD_CONFIGURE:
                                if (data->state != A2DP_STATE_INITIALIZED)
                                        break;
@@ -1030,6 +1025,8 @@ static void* a2dp_thread(void *d)
                                a2dp_free(data);
                                goto done;
 
+                       case A2DP_CMD_INIT:
+                               /* already called bluetooth_init() */
                        default:
                                break;
                }