diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2018-10-03 02:21:53 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-10-04 08:54:08 +0300 |
commit | 72bc8c4378f82307ff09f0959011fef2c818146d (patch) | |
tree | 0180c9dd0c405d634403229958031dfc34f0ec59 /sound/firewire/oxfw/oxfw.c | |
parent | 784fffbcfe117b508ff628cf296541ab70463140 (diff) | |
download | linux-72bc8c4378f82307ff09f0959011fef2c818146d.tar.xz |
ALSA: oxfw: use managed-resource to maintain model-specific data
ALSA oxfw driver allocates memory objects for data specific to some
models. These objects are used to maintain functionalities specific
to the models for ALSA rawMIDI/control interfaces. They can be
released as managed-resource of 'struct snd_card.card_dev'.
This commit uses managed-resource of the sound card device for this
purpose.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/oxfw/oxfw.c')
-rw-r--r-- | sound/firewire/oxfw/oxfw.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/firewire/oxfw/oxfw.c b/sound/firewire/oxfw/oxfw.c index b892a8642204..06d791acfdc5 100644 --- a/sound/firewire/oxfw/oxfw.c +++ b/sound/firewire/oxfw/oxfw.c @@ -126,7 +126,6 @@ static void oxfw_free(struct snd_oxfw *oxfw) kfree(oxfw->rx_stream_formats[i]); } - kfree(oxfw->spec); mutex_destroy(&oxfw->mutex); fw_unit_put(oxfw->unit); } @@ -276,8 +275,6 @@ error: oxfw->rx_stream_formats[i] = NULL; } snd_card_free(oxfw->card); - kfree(oxfw->spec); - oxfw->spec = NULL; dev_info(&oxfw->unit->device, "Sound card registration failed: %d\n", err); } |