From 9099e1fc163534c0d66ba0d6b07889647485819b Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Sat, 4 Dec 2010 13:50:24 -0800 Subject: [PATCH] datapath: Use NULL instead of 0 in alloc_buckets(). 0 and NULL are the same but NULL has clearer semantics. This has no functional change. Found with sparse. Signed-off-by: Jesse Gross Acked-by: Ben Pfaff --- datapath/table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datapath/table.c b/datapath/table.c index 61118090..86236e92 100644 --- a/datapath/table.c +++ b/datapath/table.c @@ -78,7 +78,7 @@ static struct tbl_bucket ***alloc_buckets(unsigned int n_buckets) for (i = 0; i < n_buckets >> TBL_L1_BITS; i++) { l1[i] = (struct tbl_bucket **)get_zeroed_page(GFP_KERNEL); if (!l1[i]) { - free_buckets(l1, i << TBL_L1_BITS, 0); + free_buckets(l1, i << TBL_L1_BITS, NULL); return NULL; } } -- 2.30.2