mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
fs-ext3-use-rbtree-postorder-iteration-helper-instead-of-opencoding-fix
use do{}while - more efficient and it squishes a coccinelle warning
Reported-by: Fengguang Wu <[email protected]>
Cc: Cody P Schafer <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Michel Lespinasse <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
b1c8047c6b
commit
ed8f68669a
1 changed files with 4 additions and 4 deletions
|
|
@ -312,11 +312,11 @@ static void free_rb_tree_fname(struct rb_root *root)
|
|||
struct fname *fname, *next;
|
||||
|
||||
rbtree_postorder_for_each_entry_safe(fname, next, root, rb_hash)
|
||||
while (fname) {
|
||||
struct fname * old = fname;
|
||||
do {
|
||||
struct fname *old = fname;
|
||||
fname = fname->next;
|
||||
kfree (old);
|
||||
}
|
||||
kfree(old);
|
||||
} while (fname);
|
||||
|
||||
*root = RB_ROOT;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue