Skip to content

Commit

Permalink
staging: usbip: stub_main.c: use KMEM_CACHE macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
matt mooney authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent 27ed5da commit 7d4de89
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/staging/usbip/stub_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7d4de89

Please sign in to comment.