mirror of
https://github.com/torvalds/linux.git
synced 2026-09-13 15:40:03 +02:00
ALSA: hda: Drop __force casts
Now that the bitwise parameter definitions are gone for PCM and control parameters, we don't have to cast with ugly __force prefix. Simply drop those superfluous casts. Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20260812060557.80445-9-tiwai@suse.de
This commit is contained in:
parent
93aa34ef91
commit
ba4239b6d8
|
|
@ -3379,7 +3379,7 @@ int snd_hda_add_new_ctls(struct hda_codec *codec,
|
|||
for (; knew->name; knew++) {
|
||||
struct snd_kcontrol *kctl;
|
||||
int addr = 0, idx = 0;
|
||||
if (knew->iface == (__force snd_ctl_elem_iface_t)-1)
|
||||
if (knew->iface == -1)
|
||||
continue; /* skip this codec private value */
|
||||
for (;;) {
|
||||
kctl = snd_ctl_new1(knew, codec);
|
||||
|
|
|
|||
|
|
@ -765,7 +765,7 @@ unsigned int snd_hdac_stream_format_bits(snd_pcm_format_t format, snd_pcm_subfor
|
|||
|
||||
params_set_format(¶ms, snd_hdac_format_normalize(format));
|
||||
snd_mask_set(hw_param_mask(¶ms, SNDRV_PCM_HW_PARAM_SUBFORMAT),
|
||||
(__force unsigned int)subformat);
|
||||
subformat);
|
||||
|
||||
bits = snd_pcm_hw_params_bits(¶ms);
|
||||
if (maxbits)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user