diff options
Diffstat (limited to 'audio/pcm_bluetooth.c')
-rw-r--r-- | audio/pcm_bluetooth.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/audio/pcm_bluetooth.c b/audio/pcm_bluetooth.c index 7cf802b8..2c36bed9 100644 --- a/audio/pcm_bluetooth.c +++ b/audio/pcm_bluetooth.c @@ -232,7 +232,7 @@ static int bluetooth_state(struct bluetooth_data *data, int newstate) char buf[IPC_MTU]; struct ipc_packet *pkt = (void *) buf; struct ipc_data_state *state = (void *) pkt->data; - int ret, total; + int ret; memset(buf, 0, sizeof(buf)); @@ -256,8 +256,6 @@ static int bluetooth_state(struct bluetooth_data *data, int newstate) else if (ret == 0) return -EIO; - total = ret; - if (pkt->type != PKT_TYPE_STATE_RSP) { SNDERR("Unexpected packet type %d received", pkt->type); return -EINVAL; |