aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-11-01 12:22:18 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-11-01 12:22:18 +0100
commitbc799a90ab7cc23dbe7286eb38d64af545de417c (patch)
tree425649d2664c1b04715c400d06bebd8960e479f5
parentdff24533071f260d3c77f1563b0cb7b7ddec1a9b (diff)
Fix warning (minor)
Change-Id: I0c29015e252d1091a9350fc85e05c1a444bb7579 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--alsa-binding/Alsa-AddCtl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/alsa-binding/Alsa-AddCtl.c b/alsa-binding/Alsa-AddCtl.c
index 108a590..82a6dac 100644
--- a/alsa-binding/Alsa-AddCtl.c
+++ b/alsa-binding/Alsa-AddCtl.c
@@ -74,7 +74,6 @@ static const unsigned int *allocate_int_dbscale_tlv(int min, int step, int mute)
static const unsigned int *allocate_int_linear_tlv(int max, int min) {
// SNDRV_CTL_TLVD_DECLARE_DB_LINEAR (range, min, max);
- size_t tlvSize = 4 * sizeof (unsigned int);
unsigned int *tlv = malloc(4 * sizeof (unsigned int));
tlv[0] = SNDRV_CTL_TLVT_DB_LINEAR;
tlv[1] = (unsigned int)(2 * sizeof (unsigned int));