diff options
| author | Rong Zhang <i@rong.moe> | 2026-09-08 03:34:39 +0800 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-09-08 09:11:44 +0200 |
| commit | 4ee51cf8141396e2b59c27cd983c1d5c9fd48297 (patch) | |
| tree | fe0c578e681ad5e0b049bcf181689496588a2b88 /tools/lib/python/kdoc | |
| parent | 4c4e4be4edd5dbf5f7f6a3ef4fc0c243f2d01b3c (diff) | |
ALSA: usb-audio: Convert snd_usb_apply_interface_quirk() into a switch statement
A switch statement is more readable than the current if blocks.
Also sort the cases in an ascending order.
As an interesting effect, this shrinks the size of quirks.o by 64 bytes
(GCC 16 -O2 x86_64):
text data bss total filename (before)
15266 12279 0 27545 quirks.o
text data bss total filename (before)
15202 12279 0 27481 quirks.o
Signed-off-by: Rong Zhang <i@rong.moe>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20260908-uac-hp-elite-x3-lap-dock-v1-1-e226cfe4038e@rong.moe
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
