projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56b20c5
)
datapath: Use NULL instead of 0 in alloc_buckets().
author
Jesse Gross
<jesse@nicira.com>
Sat, 4 Dec 2010 21:50:24 +0000
(13:50 -0800)
committer
Jesse Gross
<jesse@nicira.com>
Fri, 10 Dec 2010 01:43:36 +0000
(17:43 -0800)
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@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/table.c
patch
|
blob
|
history
diff --git
a/datapath/table.c
b/datapath/table.c
index 61118090c3fa83e1868990bc49672be47a2a7dad..86236e924c3c256678529d79295e61cbec687899 100644
(file)
--- 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;
}
}