[ovs-dev] [PATCH 11/19] datapath: Use NULL instead of 0 in alloc_buckets().
Jesse Gross
jesse at nicira.com
Thu Dec 9 06:14:09 UTC 2010
0 and NULL are the same but NULL has clearer semantics. This has
no functional change.
Found with sparse.
Signed-off-by: Jesse Gross <jesse at nicira.com>
---
datapath/table.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/datapath/table.c b/datapath/table.c
index 6111809..86236e9 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;
}
}
--
1.7.1
More information about the dev
mailing list