summaryrefslogtreecommitdiffstats
path: root/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'core.c')
-rw-r--r--core.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/core.c b/core.c
index a99f82a..f3b33d1 100644
--- a/core.c
+++ b/core.c
@@ -202,14 +202,15 @@ static void destroy_snd_avirt_audiopath_obj(struct snd_avirt_audiopath_obj *p)
* pcm_private_data_free - callback function to free private data allocated to pcm
* @pcm: the PCM with private data
*/
-void pcm_private_data_free(struct snd_pcm *pcm)
+static void pcm_private_data_free(struct snd_pcm *pcm)
{
struct snd_avirt_private_data *avirt_private_data;
- D_PRINTK("Issuing free to private data struct");
- if(pcm->private_data){
+
+ D_PRINTK("Issuing free to private data struct");
+ if (pcm->private_data) {
avirt_private_data = pcm->private_data;
- if(avirt_private_data->ap_userdata)
- avirt_private_data->private_free(pcm);
+ if (avirt_private_data->ap_private_data)
+ avirt_private_data->ap_private_free(pcm);
}
kfree(pcm->private_data);