summaryrefslogtreecommitdiffstats
path: root/audio/ctl_bluetooth.c
diff options
context:
space:
mode:
authorBrad Midgley <bmidgley@xmission.com>2008-01-07 23:52:02 +0000
committerBrad Midgley <bmidgley@xmission.com>2008-01-07 23:52:02 +0000
commit259598d66abd75124bc1c5f008a504d98e78b847 (patch)
tree98b469005e870697352664f393d58b10084647c5 /audio/ctl_bluetooth.c
parent72947933a64f92a798567e74e75c0222375ae599 (diff)
don't overwrite the output of bluetooth_init
also the memset is done inside bluetooth_init
Diffstat (limited to 'audio/ctl_bluetooth.c')
-rw-r--r--audio/ctl_bluetooth.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/audio/ctl_bluetooth.c b/audio/ctl_bluetooth.c
index 04185b36..f7239f67 100644
--- a/audio/ctl_bluetooth.c
+++ b/audio/ctl_bluetooth.c
@@ -317,7 +317,6 @@ SND_CTL_PLUGIN_DEFINE_FUNC(bluetooth)
DBG("Bluetooth Control plugin");
data = malloc(sizeof(struct bluetooth_data));
- memset(data, 0, sizeof(struct bluetooth_data));
if (!data) {
err = -ENOMEM;
goto error;
@@ -327,8 +326,6 @@ SND_CTL_PLUGIN_DEFINE_FUNC(bluetooth)
if (err < 0)
goto error;
- memset(data, 0, sizeof(*data));
-
data->ext.version = SND_CTL_EXT_VERSION;
data->ext.card_idx = -1;