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)
commit7086b7b3d101e0e6fca2bf7ca2f14483fc881837
tree12ed6cdfeb8af27eb229d4ca62bab3567e1cc68e
parente2810d76c5f3b0152fa0f7c40170e123b33e058c
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