From 259598d66abd75124bc1c5f008a504d98e78b847 Mon Sep 17 00:00:00 2001 From: Brad Midgley Date: Mon, 7 Jan 2008 23:52:02 +0000 Subject: don't overwrite the output of bluetooth_init also the memset is done inside bluetooth_init --- audio/ctl_bluetooth.c | 3 --- 1 file changed, 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; -- cgit