Skip to content

Commit 3f831e3

Browse files
sjp38paulmckrcu
authored andcommitted
Docs/RCU/rculist_nulls: Fix trivial coding style
Lookup example of non-hlist_nulls management is missing a semicolon, and having inconsistent indentation (one line is using single space indentation while others are using two spaces indentation). Fix the trivial issues. Signed-off-by: SeongJae Park <[email protected]> Reviewed-by: Joel Fernandes (Google) <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent bc25e7c commit 3f831e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/RCU/rculist_nulls.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ algorithms:
2626
::
2727

2828
begin:
29-
rcu_read_lock()
29+
rcu_read_lock();
3030
obj = lockless_lookup(key);
3131
if (obj) {
3232
if (!try_get_ref(obj)) { // might fail for free objects
@@ -70,8 +70,8 @@ And note the traditional hlist_for_each_entry_rcu() misses this smp_rmb()::
7070
pos && ({ prefetch(pos->next); 1; }) &&
7171
({ tpos = hlist_entry(pos, typeof(*tpos), member); 1; });
7272
pos = rcu_dereference(pos->next))
73-
if (obj->key == key)
74-
return obj;
73+
if (obj->key == key)
74+
return obj;
7575
return NULL;
7676

7777
Quoting Corey Minyard::

0 commit comments

Comments
 (0)