diff options
author | наб <[email protected]> | 2022-01-21 17:07:15 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-01-26 11:38:52 -0800 |
commit | 7ada752a934f79d87fb9ef998455f26fd07f59a7 (patch) | |
tree | fadcb89e9710da5b7ad2d5b6f26c94eb1ca96d50 /module/avl/avl.c | |
parent | a3fecf4f1059f4afcead0e7a502ffe8babb1e39c (diff) |
Clean up CSTYLEDs
69 CSTYLED BEGINs remain, appx. 30 of which can be removed if cstyle(1)
had a useful policy regarding
CALL(ARG1,
ARG2,
ARG3);
above 2 lines. As it stands, it spits out *both*
sysctl_os.c: 385: continuation line should be indented by 4 spaces
sysctl_os.c: 385: indent by spaces instead of tabs
which is very cool
Another >10 could be fixed by removing "ulong" &al. handling.
I don't foresee anyone actually using it intentionally
(does it even exist in modern headers? why did it in the first place?).
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #12993
Diffstat (limited to 'module/avl/avl.c')
-rw-r--r-- | module/avl/avl.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/module/avl/avl.c b/module/avl/avl.c index c86dc9835..3891a2d62 100644 --- a/module/avl/avl.c +++ b/module/avl/avl.c @@ -319,7 +319,6 @@ avl_rotation(avl_tree_t *tree, avl_node_t *node, int balance) int which_child = AVL_XCHILD(node); int child_bal = AVL_XBALANCE(child); - /* BEGIN CSTYLED */ /* * case 1 : node is overly left heavy, the left child is balanced or * also left heavy. This requires the following rotation. @@ -345,7 +344,6 @@ avl_rotation(avl_tree_t *tree, avl_node_t *node, int balance) * we detect this situation by noting that child's balance is not * right_heavy. */ - /* END CSTYLED */ if (child_bal != right_heavy) { /* @@ -388,7 +386,6 @@ avl_rotation(avl_tree_t *tree, avl_node_t *node, int balance) return (child_bal == 0); } - /* BEGIN CSTYLED */ /* * case 2 : When node is left heavy, but child is right heavy we use * a different rotation. @@ -420,7 +417,6 @@ avl_rotation(avl_tree_t *tree, avl_node_t *node, int balance) * if gchild was right_heavy, then child is now left heavy * else it is balanced */ - /* END CSTYLED */ gchild = child->avl_child[right]; gleft = gchild->avl_child[left]; gright = gchild->avl_child[right]; |