Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <sj@kernel.org>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>

authored by

SeongJae Park and committed by
Paul E. McKenney
3f831e38 bc25e7c3

+3 -3
+3 -3
Documentation/RCU/rculist_nulls.rst
··· 26 26 :: 27 27 28 28 begin: 29 - rcu_read_lock() 29 + rcu_read_lock(); 30 30 obj = lockless_lookup(key); 31 31 if (obj) { 32 32 if (!try_get_ref(obj)) { // might fail for free objects ··· 70 70 pos && ({ prefetch(pos->next); 1; }) && 71 71 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1; }); 72 72 pos = rcu_dereference(pos->next)) 73 - if (obj->key == key) 74 - return obj; 73 + if (obj->key == key) 74 + return obj; 75 75 return NULL; 76 76 77 77 Quoting Corey Minyard::