mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
ALSA: snd-usb: drop unused varible assigments
Don't assign 'len' in cases where we don't make use of the returned value. Signed-off-by: Daniel Mack <daniel@zonque.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
70c84418bf
commit
49fd46d2ff
1 changed files with 4 additions and 5 deletions
|
@ -1290,9 +1290,8 @@ static void build_feature_ctl(struct mixer_build *state, void *raw_desc,
|
||||||
kctl->id.name,
|
kctl->id.name,
|
||||||
sizeof(kctl->id.name), 1);
|
sizeof(kctl->id.name), 1);
|
||||||
if (!len)
|
if (!len)
|
||||||
len = snprintf(kctl->id.name,
|
snprintf(kctl->id.name, sizeof(kctl->id.name),
|
||||||
sizeof(kctl->id.name),
|
"Feature %d", unitid);
|
||||||
"Feature %d", unitid);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mapped_name)
|
if (!mapped_name)
|
||||||
|
@ -1305,9 +1304,9 @@ static void build_feature_ctl(struct mixer_build *state, void *raw_desc,
|
||||||
*/
|
*/
|
||||||
if (!mapped_name && !(state->oterm.type >> 16)) {
|
if (!mapped_name && !(state->oterm.type >> 16)) {
|
||||||
if ((state->oterm.type & 0xff00) == 0x0100)
|
if ((state->oterm.type & 0xff00) == 0x0100)
|
||||||
len = append_ctl_name(kctl, " Capture");
|
append_ctl_name(kctl, " Capture");
|
||||||
else
|
else
|
||||||
len = append_ctl_name(kctl, " Playback");
|
append_ctl_name(kctl, " Playback");
|
||||||
}
|
}
|
||||||
append_ctl_name(kctl, control == UAC_FU_MUTE ?
|
append_ctl_name(kctl, control == UAC_FU_MUTE ?
|
||||||
" Switch" : " Volume");
|
" Switch" : " Volume");
|
||||||
|
|
Loading…
Reference in a new issue