diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2011-10-11 11:51:16 -0400 |
---|---|---|
committer | Clemens Ladisch <clemens@ladisch.de> | 2013-10-20 16:07:57 -0400 |
commit | 8709f1e4d68b0b3caf9783cf2463e5747943bff8 (patch) | |
tree | dfd17fd1166008a0a1d1b4690ce04df719159867 /sound/firewire/dice.c | |
parent | 435a9be8bdb7422b82c194fad2d279ef436addc1 (diff) |
ALSA: dice: remove superfluous field
The pcm field was not actually used.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound/firewire/dice.c')
-rw-r--r-- | sound/firewire/dice.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/firewire/dice.c b/sound/firewire/dice.c index 57ceb13f2815..2d198aed6f94 100644 --- a/sound/firewire/dice.c +++ b/sound/firewire/dice.c | |||
@@ -43,7 +43,6 @@ struct dice { | |||
43 | bool global_enabled; | 43 | bool global_enabled; |
44 | wait_queue_head_t hwdep_wait; | 44 | wait_queue_head_t hwdep_wait; |
45 | u32 notification_bits; | 45 | u32 notification_bits; |
46 | struct snd_pcm_substream *pcm; | ||
47 | struct fw_iso_resources resources; | 46 | struct fw_iso_resources resources; |
48 | struct amdtp_out_stream stream; | 47 | struct amdtp_out_stream stream; |
49 | }; | 48 | }; |
@@ -564,8 +563,7 @@ static int dice_create_pcm(struct dice *dice) | |||
564 | return err; | 563 | return err; |
565 | pcm->private_data = dice; | 564 | pcm->private_data = dice; |
566 | strcpy(pcm->name, dice->card->shortname); | 565 | strcpy(pcm->name, dice->card->shortname); |
567 | dice->pcm = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; | 566 | pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->ops = &ops; |
568 | dice->pcm->ops = &ops; | ||
569 | 567 | ||
570 | return 0; | 568 | return 0; |
571 | } | 569 | } |