linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] FS: BTRFS: ulist.c: Fixed a brace coding style and space before tab
@ 2020-05-22 21:29 Ethan Edwards
  2020-05-25 12:37 ` David Sterba
  0 siblings, 1 reply; 2+ messages in thread
From: Ethan Edwards @ 2020-05-22 21:29 UTC (permalink / raw)
  To: clm; +Cc: linux-kernel, linux-btrfs, Ethan Edwards

From: Ethan Edwards <ethancarteredwards@gmail.com

Fixed coding style

Signed-off-by: Ethan Edwards <ethancarteredwards@gmail.com>
---
 fs/btrfs/ulist.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/fs/btrfs/ulist.c b/fs/btrfs/ulist.c
index 3374c9e9be67..1e0484c8d244 100644
--- a/fs/btrfs/ulist.c
+++ b/fs/btrfs/ulist.c
@@ -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;
 }
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] FS: BTRFS: ulist.c: Fixed a brace coding style and space before tab
  2020-05-22 21:29 [PATCH] FS: BTRFS: ulist.c: Fixed a brace coding style and space before tab Ethan Edwards
@ 2020-05-25 12:37 ` David Sterba
  0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2020-05-25 12:37 UTC (permalink / raw)
  To: Ethan Edwards; +Cc: clm, linux-kernel, linux-btrfs

On Fri, May 22, 2020 at 05:29:02PM -0400, Ethan Edwards wrote:
> From: Ethan Edwards <ethancarteredwards@gmail.com
> 
> Fixed coding style

No thanks.

Long answer: https://btrfs.wiki.kernel.org/index.php/Developer%27s_FAQ#How_not_to_start

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-25 12:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-22 21:29 [PATCH] FS: BTRFS: ulist.c: Fixed a brace coding style and space before tab Ethan Edwards
2020-05-25 12:37 ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).