tipc: cleanup various cosmetic whitespace issues
Cleans up TIPC's source code to eliminate deviations from generally accepted coding conventions relating to leading/trailing white space and white space around commas, braces, cases, and sizeof. These changes are purely cosmetic and do not alter the operation of TIPC in any way. Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
25860c3bd5
commit
0e65967e33
@@ -178,14 +178,12 @@ u32 tipc_ref_acquire(void *object, spinlock_t **lock)
|
||||
next_plus_upper = entry->ref;
|
||||
tipc_ref_table.first_free = next_plus_upper & index_mask;
|
||||
ref = (next_plus_upper & ~index_mask) + index;
|
||||
}
|
||||
else if (tipc_ref_table.init_point < tipc_ref_table.capacity) {
|
||||
} else if (tipc_ref_table.init_point < tipc_ref_table.capacity) {
|
||||
index = tipc_ref_table.init_point++;
|
||||
entry = &(tipc_ref_table.entries[index]);
|
||||
spin_lock_init(&entry->lock);
|
||||
ref = tipc_ref_table.start_mask + index;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
ref = 0;
|
||||
}
|
||||
write_unlock_bh(&ref_table_lock);
|
||||
|
Reference in New Issue
Block a user