ALSA: usb-audio: Drop unnecessary parentheses in mixer_quirks
[ Upstream commit c0495cef8b ]
Fix multiple 'CHECK: Unnecessary parentheses around ...' reports from
checkpatch.pl.
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250526-dualsense-alsa-jack-v1-5-1a821463b632@collabora.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9fdb2390b0
commit
d7a58b4d5c
@@ -379,10 +379,10 @@ static int snd_audigy2nx_controls_create(struct usb_mixer_interface *mixer)
|
||||
struct snd_kcontrol_new knew;
|
||||
|
||||
/* USB X-Fi S51 doesn't have a CMSS LED */
|
||||
if ((mixer->chip->usb_id == USB_ID(0x041e, 0x3042)) && i == 0)
|
||||
if (mixer->chip->usb_id == USB_ID(0x041e, 0x3042) && i == 0)
|
||||
continue;
|
||||
/* USB X-Fi S51 Pro doesn't have one either */
|
||||
if ((mixer->chip->usb_id == USB_ID(0x041e, 0x30df)) && i == 0)
|
||||
if (mixer->chip->usb_id == USB_ID(0x041e, 0x30df) && i == 0)
|
||||
continue;
|
||||
if (i > 1 && /* Live24ext has 2 LEDs only */
|
||||
(mixer->chip->usb_id == USB_ID(0x041e, 0x3040) ||
|
||||
@@ -3846,7 +3846,7 @@ static int snd_djm_controls_update(struct usb_mixer_interface *mixer,
|
||||
int err;
|
||||
const struct snd_djm_device *device = &snd_djm_devices[device_idx];
|
||||
|
||||
if ((group >= device->ncontrols) || value >= device->controls[group].noptions)
|
||||
if (group >= device->ncontrols || value >= device->controls[group].noptions)
|
||||
return -EINVAL;
|
||||
|
||||
err = snd_usb_lock_shutdown(mixer->chip);
|
||||
|
||||
Reference in New Issue
Block a user