X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=sound%2Fcore%2Fcontrol.c;h=48ef0a09a7a71ad964aac00a79404945e6102d22;hb=1709775828de83b099554176b6d4971ebc772962;hp=6973a9686b679c6f3fc7a5415a1795ce043e6a76;hpb=f7425b160db500520c33f241edb066fc5c413f03;p=linux-2.6-omap-h63xx.git diff --git a/sound/core/control.c b/sound/core/control.c index 6973a9686b6..48ef0a09a7a 100644 --- a/sound/core/control.c +++ b/sound/core/control.c @@ -1018,10 +1018,6 @@ static int snd_ctl_elem_add(struct snd_ctl_file *file, } switch (info->type) { case SNDRV_CTL_ELEM_TYPE_BOOLEAN: - private_size = sizeof(char); - if (info->count > 128) - return -EINVAL; - break; case SNDRV_CTL_ELEM_TYPE_INTEGER: private_size = sizeof(long); if (info->count > 128)