Merge "Remove unused variables/labels to eliminate compile warnings."
am: 0763ee2450
Change-Id: I39bf1bd9e6d8a316b9075e0a18091239b25ce989
diff --git a/modules/usbaudio/audio_hal.c b/modules/usbaudio/audio_hal.c
index e93396f..9b606b7 100644
--- a/modules/usbaudio/audio_hal.c
+++ b/modules/usbaudio/audio_hal.c
@@ -363,7 +363,6 @@
struct stream_out *out = (struct stream_out *)stream;
- int routing = 0;
int ret_value = 0;
int card = -1;
int device = -1;
@@ -641,7 +640,9 @@
proxy_config.channels = profile_get_closest_channel_count(out->profile, out->hal_channel_count);
proxy_prepare(&out->proxy, out->profile, &proxy_config);
- /* TODO The retry mechanism isn't implemented in AudioPolicyManager/AudioFlinger. */
+ /* TODO The retry mechanism isn't implemented in AudioPolicyManager/AudioFlinger
+ * So clear any errors that may have occurred above.
+ */
ret = 0;
out->conversion_buffer = NULL;
@@ -655,11 +656,6 @@
*stream_out = &out->stream;
return ret;
-
-err_open:
- free(out);
- *stream_out = NULL;
- return -ENOSYS;
}
static void adev_close_output_stream(struct audio_hw_device *hw_dev,
@@ -771,9 +767,6 @@
struct stream_in *in = (struct stream_in *)stream;
- char value[32];
- int param_val;
- int routing = 0;
int ret_value = 0;
int card = -1;
int device = -1;
@@ -868,8 +861,6 @@
in->standby = false;
}
- alsa_device_profile * profile = in->profile;
-
/*
* OK, we need to figure out how much data to read to be able to output the requested
* number of bytes in the HAL format (16-bit, stereo).
@@ -1198,7 +1189,6 @@
static int adev_close(hw_device_t *device)
{
- struct audio_device *adev = (struct audio_device *)device;
free(device);
return 0;