net: rds: Simplify the allocation of slab caches in rds_conn_init
[linux-2.6-microblaze.git] / net / rds / connection.c
index b4cc699..c749c55 100644 (file)
@@ -829,9 +829,7 @@ int rds_conn_init(void)
        if (ret)
                return ret;
 
-       rds_conn_slab = kmem_cache_create("rds_connection",
-                                         sizeof(struct rds_connection),
-                                         0, 0, NULL);
+       rds_conn_slab = KMEM_CACHE(rds_connection, 0);
        if (!rds_conn_slab) {
                rds_loop_net_exit();
                return -ENOMEM;