projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27ed5da
)
staging: usbip: stub_main.c: use KMEM_CACHE macro
author
matt mooney
<mfm@muteddisk.com>
Fri, 20 May 2011 04:37:00 +0000
(21:37 -0700)
committer
Greg 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/usbip/stub_main.c
b/drivers/staging/usbip/stub_main.c
index 53d6977db63e4bd3c3e209f5f002ed07bc54c8de..45a0f5dfcb184996a3b121e64180029c7ff227df 100644
(file)
--- 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;