Skip to content

Commit

Permalink
ALSA: dice: remove superfluous field
Browse files Browse the repository at this point in the history
The pcm field was not actually used.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
  • Loading branch information
Clemens Ladisch committed Oct 20, 2013
1 parent 435a9be commit 8709f1e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sound/firewire/dice.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 8709f1e

Please sign in to comment.