diff options
author | Brad Midgley <bmidgley@xmission.com> | 2007-09-03 19:18:35 +0000 |
---|---|---|
committer | Brad Midgley <bmidgley@xmission.com> | 2007-09-03 19:18:35 +0000 |
commit | d5566fac231129b8c8e35db1cada19ed83cb3a18 (patch) | |
tree | b4d9b8b6cb474997420ed99e473db462a2db13b4 | |
parent | e1ca1c0fbb4694b4b2c8e7532b05dbfcd4144687 (diff) |
removed unused variable total from bluetooth_state
-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; |