Commit bc80e83e authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda: beep: Drop stale mutex

The beep->mutex is no longer used since the drop of beep_mode=2.
Let's get rid of it.

Fixes: 0920c9b4 ("ALSA: hda - Remove beep_mode=2")
Link: https://lore.kernel.org/r/20240222153148.19691-1-tiwai@suse.de


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 37270950
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -231,7 +231,6 @@ int snd_hda_attach_beep_device(struct hda_codec *codec, int nid)
	codec->beep = beep;

	INIT_WORK(&beep->beep_work, &snd_hda_generate_beep);
	mutex_init(&beep->mutex);

	input_dev = input_allocate_device();
	if (!input_dev) {
+0 −1
Original line number Diff line number Diff line
@@ -27,7 +27,6 @@ struct hda_beep {
	unsigned int playing:1;
	unsigned int keep_power_at_enable:1;	/* set by driver */
	struct work_struct beep_work; /* scheduled task for beep event */
	struct mutex mutex;
	void (*power_hook)(struct hda_beep *beep, bool on);
};