From: Jesse Gross Date: Sat, 4 Dec 2010 21:50:24 +0000 (-0800) Subject: datapath: Use NULL instead of 0 in alloc_buckets(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9099e1fc163534c0d66ba0d6b07889647485819b;p=openvswitch 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 --- 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; } }