]> err.no Git - linux-2.6/blobdiff - sound/oss/opl3.c
chelsio parenthesis fix
[linux-2.6] / sound / oss / opl3.c
index 4799bc77f987223308da7adc3aa22bae581122b7..fc273e55094480db93f3ad351c4e6aea49137c28 100644 (file)
@@ -166,7 +166,7 @@ int opl3_detect(int ioaddr, int *osp)
                return 0;
        }
 
-       devc = (struct opl_devinfo *)kmalloc(sizeof(*devc), GFP_KERNEL);
+       devc = kzalloc(sizeof(*devc), GFP_KERNEL);
 
        if (devc == NULL)
        {
@@ -175,7 +175,6 @@ int opl3_detect(int ioaddr, int *osp)
                return 0;
        }
 
-       memset(devc, 0, sizeof(*devc));
        strcpy(devc->fm_info.name, "OPL2");
 
        if (!request_region(ioaddr, 4, devc->fm_info.name)) {