diff options
author | Denis Cheng <crquan@gmail.com> | 2007-09-26 14:10:04 -0400 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-10-12 14:54:34 -0400 |
commit | bddb8eb37f1460fc19e1af16010c9ad4ca3717a6 (patch) | |
tree | 82210332a8cd53835e7b356791fdb18c5e5d1b0e /fs/ocfs2 | |
parent | d550071c03f129a60dfad60d23dab73f894129a9 (diff) |
[PATCH] fs/ocfs2/: removed unneeded initial value and function's return value
Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/super.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index e5ac0714dab2..0e2a1b45bf92 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -107,7 +107,7 @@ static int ocfs2_sync_fs(struct super_block *sb, int wait); | |||
107 | 107 | ||
108 | static int ocfs2_init_global_system_inodes(struct ocfs2_super *osb); | 108 | static int ocfs2_init_global_system_inodes(struct ocfs2_super *osb); |
109 | static int ocfs2_init_local_system_inodes(struct ocfs2_super *osb); | 109 | static int ocfs2_init_local_system_inodes(struct ocfs2_super *osb); |
110 | static int ocfs2_release_system_inodes(struct ocfs2_super *osb); | 110 | static void ocfs2_release_system_inodes(struct ocfs2_super *osb); |
111 | static int ocfs2_fill_local_node_info(struct ocfs2_super *osb); | 111 | static int ocfs2_fill_local_node_info(struct ocfs2_super *osb); |
112 | static int ocfs2_check_volume(struct ocfs2_super *osb); | 112 | static int ocfs2_check_volume(struct ocfs2_super *osb); |
113 | static int ocfs2_verify_volume(struct ocfs2_dinode *di, | 113 | static int ocfs2_verify_volume(struct ocfs2_dinode *di, |
@@ -180,7 +180,7 @@ static void ocfs2_write_super(struct super_block *sb) | |||
180 | 180 | ||
181 | static int ocfs2_sync_fs(struct super_block *sb, int wait) | 181 | static int ocfs2_sync_fs(struct super_block *sb, int wait) |
182 | { | 182 | { |
183 | int status = 0; | 183 | int status; |
184 | tid_t target; | 184 | tid_t target; |
185 | struct ocfs2_super *osb = OCFS2_SB(sb); | 185 | struct ocfs2_super *osb = OCFS2_SB(sb); |
186 | 186 | ||
@@ -278,9 +278,9 @@ bail: | |||
278 | return status; | 278 | return status; |
279 | } | 279 | } |
280 | 280 | ||
281 | static int ocfs2_release_system_inodes(struct ocfs2_super *osb) | 281 | static void ocfs2_release_system_inodes(struct ocfs2_super *osb) |
282 | { | 282 | { |
283 | int status = 0, i; | 283 | int i; |
284 | struct inode *inode; | 284 | struct inode *inode; |
285 | 285 | ||
286 | mlog_entry_void(); | 286 | mlog_entry_void(); |
@@ -305,8 +305,7 @@ static int ocfs2_release_system_inodes(struct ocfs2_super *osb) | |||
305 | osb->root_inode = NULL; | 305 | osb->root_inode = NULL; |
306 | } | 306 | } |
307 | 307 | ||
308 | mlog_exit(status); | 308 | mlog_exit(0); |
309 | return status; | ||
310 | } | 309 | } |
311 | 310 | ||
312 | /* We're allocating fs objects, use GFP_NOFS */ | 311 | /* We're allocating fs objects, use GFP_NOFS */ |
@@ -456,7 +455,7 @@ static int ocfs2_sb_probe(struct super_block *sb, | |||
456 | struct buffer_head **bh, | 455 | struct buffer_head **bh, |
457 | int *sector_size) | 456 | int *sector_size) |
458 | { | 457 | { |
459 | int status = 0, tmpstat; | 458 | int status, tmpstat; |
460 | struct ocfs1_vol_disk_hdr *hdr; | 459 | struct ocfs1_vol_disk_hdr *hdr; |
461 | struct ocfs2_dinode *di; | 460 | struct ocfs2_dinode *di; |
462 | int blksize; | 461 | int blksize; |
@@ -1314,7 +1313,7 @@ static int ocfs2_initialize_super(struct super_block *sb, | |||
1314 | struct buffer_head *bh, | 1313 | struct buffer_head *bh, |
1315 | int sector_size) | 1314 | int sector_size) |
1316 | { | 1315 | { |
1317 | int status = 0; | 1316 | int status; |
1318 | int i, cbits, bbits; | 1317 | int i, cbits, bbits; |
1319 | struct ocfs2_dinode *di = (struct ocfs2_dinode *)bh->b_data; | 1318 | struct ocfs2_dinode *di = (struct ocfs2_dinode *)bh->b_data; |
1320 | struct inode *inode = NULL; | 1319 | struct inode *inode = NULL; |
@@ -1635,7 +1634,7 @@ static int ocfs2_verify_volume(struct ocfs2_dinode *di, | |||
1635 | 1634 | ||
1636 | static int ocfs2_check_volume(struct ocfs2_super *osb) | 1635 | static int ocfs2_check_volume(struct ocfs2_super *osb) |
1637 | { | 1636 | { |
1638 | int status = 0; | 1637 | int status; |
1639 | int dirty; | 1638 | int dirty; |
1640 | int local; | 1639 | int local; |
1641 | struct ocfs2_dinode *local_alloc = NULL; /* only used if we | 1640 | struct ocfs2_dinode *local_alloc = NULL; /* only used if we |