FS: BTRFS: ulist.c: Fixed a brace coding style and space before tab
PATCH 1/1 FS: BTRFS: ulist.c: Fixed a brace coding style and space before tab
From: Ethan Edwards <[email protected]
Fixed coding style
Signed-off-by Ethan Edwards <[email protected]>
--- fs/btrfs/ulist.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
fs/btrfs/ulist.c +4 -4
@@ -22,7 +22,7 @@* ULIST_ITER_INIT(&uiter); * * while ((elem = ulist_next(ulist, &uiter)) { -* for (all child nodes n in elem) +* for (all child nodes n in elem) * ulist_add(ulist, n); * do something useful with the node; * }
@@ -266,11 +266,11 @@ struct ulist_node *ulist_next(struct ulist *ulist, struct ulist_iterator *uiter)return NULL ;if (uiter->cur_list && uiter->cur_list->next == &ulist->nodes)return NULL ; -if (uiter->cur_list) { +if (uiter->cur_list) uiter->cur_list = uiter->cur_list->next; - }else { +else uiter->cur_list = ulist->nodes.next; - } + node = list_entry(uiter->cur_list, struct ulist_node, list);return node; }
Signature · 1 line
2.26.2
Quoted 3 lines · Ethan Edwards
From: Ethan Edwards <[email protected]
Fixed coding style
No thanks.
Long answer: https://btrfs.wiki.kernel.org/index.php/Developer%27s_FAQ#How_not_to_start