From: matt mooney Date: Fri, 20 May 2011 04:37:00 +0000 (-0700) Subject: staging: usbip: stub_main.c: use KMEM_CACHE macro X-Git-Tag: MMI-PSA29.97-13-9~18845^2~568^2~29 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7d4de89f1965ec21a8c0b8de0cfbdd57094a2686;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: usbip: stub_main.c: use KMEM_CACHE macro Change kmem_cache_create() to the KMEM_CACHE() macro. Signed-off-by: matt mooney Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/usbip/stub_main.c b/drivers/staging/usbip/stub_main.c index 53d6977db63e..45a0f5dfcb18 100644 --- a/drivers/staging/usbip/stub_main.c +++ b/drivers/staging/usbip/stub_main.c @@ -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;