]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Tidy up mixer_us16x08.c
authorTakashi Iwai <tiwai@suse.de>
Wed, 22 Feb 2017 07:37:41 +0000 (08:37 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 22 Feb 2017 14:07:20 +0000 (15:07 +0100)
commit5630e381cc5d44b4f03e0b6600e0b1d23955410f
tree12ed6cdfeb8af27eb229d4ca62bab3567e1cc68e
parent034941864abd187fc9d079ac760053927ff76be2
ALSA: usb-audio: Tidy up mixer_us16x08.c

A few more cleanups and improvements that have been overlooked:

- Use ARRAY_SIZE() macro appropriately
- Code shuffling for minor optimization
- Omit superfluous variable initializations
- Get rid of superfluous NULL checks
- Add const to snd_us16x08_control_params definitions

No functional changes.

Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_us16x08.c