include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit...
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / net / cxgb3 / cxgb3_offload.c
index 75064eea1d87eea36acb36b5351f7f5a16855adb..c6485b39eb0e630c67a5f91cd683ab7365362928 100644 (file)
@@ -31,6 +31,7 @@
  */
 
 #include <linux/list.h>
+#include <linux/slab.h>
 #include <net/neighbour.h>
 #include <linux/notifier.h>
 #include <asm/atomic.h>
@@ -1252,7 +1253,7 @@ int cxgb3_offload_activate(struct adapter *adapter)
        struct mtutab mtutab;
        unsigned int l2t_capacity;
 
-       t = kcalloc(1, sizeof(*t), GFP_KERNEL);
+       t = kzalloc(sizeof(*t), GFP_KERNEL);
        if (!t)
                return -ENOMEM;