summaryrefslogtreecommitdiff
path: root/drivers/staging/usbip/stub_main.c
diff options
context:
space:
mode:
authormatt mooney <mfm@muteddisk.com>2011-05-20 04:37:00 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-06-07 20:51:24 (GMT)
commit7d4de89f1965ec21a8c0b8de0cfbdd57094a2686 (patch)
treed7a22ee3605b065625b0a77d1e541295e9b02e60 /drivers/staging/usbip/stub_main.c
parent27ed5da0b626680ddc1670e7b6cc106472ac14c4 (diff)
downloadlinux-7d4de89f1965ec21a8c0b8de0cfbdd57094a2686.tar.xz
staging: usbip: stub_main.c: use KMEM_CACHE macro
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>
Diffstat (limited to 'drivers/staging/usbip/stub_main.c')
-rw-r--r--drivers/staging/usbip/stub_main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/usbip/stub_main.c b/drivers/staging/usbip/stub_main.c
index 53d6977..45a0f5d 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;