]> err.no Git - linux-2.6/commitdiff
[ALSA] usb-audio - reduce size of unitbitmap array
authorClemens Ladisch <clemens@ladisch.de>
Fri, 29 Apr 2005 07:56:17 +0000 (09:56 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sun, 29 May 2005 08:05:33 +0000 (10:05 +0200)
USB generic driver
Unit/terminal IDs are 8-bit integers, so the unitbitmap
variable does not need to be bigger than 256 bits.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/usb/usbmixer.c

index 6ad154aaba1bd5a84a1185d1123b70e14f76b6b3..e601f4ba5f2c95334841f366e58464b9033ce2a3 100644 (file)
@@ -67,7 +67,7 @@ struct usb_mixer_build {
        unsigned int ctrlif;
        unsigned short vendor;
        unsigned short product;
-       DECLARE_BITMAP(unitbitmap, 32*32);
+       DECLARE_BITMAP(unitbitmap, 256);
        usb_audio_term_t oterm;
        const struct usbmix_name_map *map;
        const struct usbmix_selector_map *selector_map;