]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Refactor ignore_ctl_error checks
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 Nov 2014 10:02:14 +0000 (11:02 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 20 Nov 2014 20:46:32 +0000 (21:46 +0100)
commit692e8a48b5675fec7f8c7253095cb8708a758892
tree9456382d8eb2a3530314b04789de371e18b7ce56
parenteffb37e013fe5f7213285331136e50e342d5a91d
ALSA: usb-audio: Refactor ignore_ctl_error checks

Introduce an internal helper macro for avoiding many open codes.

The only slight behavior change is in a couple of get ballcks where
the value is reset at error no matter whether ignore_ctl_error is set
or not.  Actually this is even safer than before.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c