From d5566fac231129b8c8e35db1cada19ed83cb3a18 Mon Sep 17 00:00:00 2001 From: Brad Midgley Date: Mon, 3 Sep 2007 19:18:35 +0000 Subject: removed unused variable total from bluetooth_state --- audio/pcm_bluetooth.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'audio/pcm_bluetooth.c') 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; -- cgit