staging: usbip: stub_main.c: use KMEM_CACHE macro
authormatt mooney <mfm@muteddisk.com>
Fri, 20 May 2011 04:37:00 +0000 (21:37 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 20:51:24 +0000 (13:51 -0700)
Change kmem_cache_create() to the KMEM_CACHE() macro.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/stub_main.c

index 53d6977db63e4bd3c3e209f5f002ed07bc54c8de..45a0f5dfcb184996a3b121e64180029c7ff227df 100644 (file)
@@ -249,9 +249,8 @@ static int __init usbip_host_init(void)
 {
        int ret;
 
-       stub_priv_cache = kmem_cache_create("stub_priv",
-                                           sizeof(struct stub_priv), 0,
-                                           SLAB_HWCACHE_ALIGN, NULL);
+       stub_priv_cache = KMEM_CACHE(stub_priv, SLAB_HWCACHE_ALIGN);
+
        if (!stub_priv_cache) {
                pr_err("kmem_cache_create failed\n");
                return -ENOMEM;