Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8709f1e4 authored by Clemens Ladisch's avatar Clemens Ladisch
Browse files

ALSA: dice: remove superfluous field



The pcm field was not actually used.

Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
parent 435a9be8
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
}