]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - net/tipc/ref.c
[TIPC]: Removing useless casts
[linux-2.6.git] / net / tipc / ref.c
index 596d3c8ff75006a95545e9f1a9407bd5e6b9d062..e6d6ae22ea495065db2e5862c8ec41b95fda8661 100644 (file)
@@ -79,7 +79,7 @@ int tipc_ref_table_init(u32 requested_size, u32 start)
        while (sz < requested_size) {
                sz <<= 1;
        }
-       table = (struct reference *)vmalloc(sz * sizeof(struct reference));
+       table = vmalloc(sz * sizeof(*table));
        if (table == NULL)
                return -ENOMEM;