ALSA: dice: remove superfluous field
authorClemens Ladisch <clemens@ladisch.de>
Tue, 11 Oct 2011 15:51:16 +0000 (17:51 +0200)
committerClemens Ladisch <clemens@ladisch.de>
Sun, 20 Oct 2013 20:07:57 +0000 (22:07 +0200)
The pcm field was not actually used.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/firewire/dice.c

index 57ceb13f281514fc3acb9dddbfcd313b56d7eb56..2d198aed6f94bafb0f7be5547641dc7e0d413cd8 100644 (file)
@@ -43,7 +43,6 @@ struct dice {
        bool global_enabled;
        wait_queue_head_t hwdep_wait;
        u32 notification_bits;
-       struct snd_pcm_substream *pcm;
        struct fw_iso_resources resources;
        struct amdtp_out_stream stream;
 };
@@ -564,8 +563,7 @@ static int dice_create_pcm(struct dice *dice)
                return err;
        pcm->private_data = dice;
        strcpy(pcm->name, dice->card->shortname);
-       dice->pcm = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
-       dice->pcm->ops = &ops;
+       pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->ops = &ops;
 
        return 0;
 }