aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hfsplus/bnode.c
diff options
context:
space:
mode:
authorAnton Salikhmetov <alexo@tuxera.com>2010-12-16 11:08:41 -0500
committerChristoph Hellwig <hch@tuxera.com>2010-12-16 12:08:46 -0500
commitb2837fcf4994e699a4def002e26f274d95b387c1 (patch)
treefcb2f4e91b11746972e9f1abd9e4b70e7573286c /fs/hfsplus/bnode.c
parent20b7643d8ee44254fc972d42655bace81e7ab50a (diff)
hfsplus: %L-to-%ll, macro correction, and remove unneeded braces
Clean-up based on checkpatch.pl report against unnecessary braces (`{' and `}'), non-standard format option %Lu (%llu recommended) as well as one trailing statement in a macro definition which should have been on the next line. Signed-off-by: Anton Salikhmetov <alexo@tuxera.com> Signed-off-by: Christoph Hellwig <hch@tuxera.com>
Diffstat (limited to 'fs/hfsplus/bnode.c')
-rw-r--r--fs/hfsplus/bnode.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/hfsplus/bnode.c b/fs/hfsplus/bnode.c
index c8f4ea4bb5ed..1c42cc5b899f 100644
--- a/fs/hfsplus/bnode.c
+++ b/fs/hfsplus/bnode.c
@@ -363,9 +363,8 @@ void hfs_bnode_unlink(struct hfs_bnode *node)
363 tree->leaf_tail = node->prev; 363 tree->leaf_tail = node->prev;
364 364
365 /* move down? */ 365 /* move down? */
366 if (!node->prev && !node->next) { 366 if (!node->prev && !node->next)
367 dprint(DBG_BNODE_MOD, "hfs_btree_del_level\n"); 367 dprint(DBG_BNODE_MOD, "hfs_btree_del_level\n");
368 }
369 if (!node->parent) { 368 if (!node->parent) {
370 tree->root = 0; 369 tree->root = 0;
371 tree->depth = 0; 370 tree->depth = 0;
@@ -392,11 +391,9 @@ struct hfs_bnode *hfs_bnode_findhash(struct hfs_btree *tree, u32 cnid)
392 } 391 }
393 392
394 for (node = tree->node_hash[hfs_bnode_hash(cnid)]; 393 for (node = tree->node_hash[hfs_bnode_hash(cnid)];
395 node; node = node->next_hash) { 394 node; node = node->next_hash)
396 if (node->this == cnid) { 395 if (node->this == cnid)
397 return node; 396 return node;
398 }
399 }
400 return NULL; 397 return NULL;
401} 398}
402 399