kill superfluous returns at the end of void functions

This commit is contained in:
Denis Vlasenko
2007-03-11 13:43:10 +00:00
parent ecea8f201e
commit baca175912
18 changed files with 17 additions and 59 deletions

View File

@@ -131,7 +131,6 @@ set_pri:
pri = BLKID_PRI_MD;
if (dev)
dev->bid_pri = pri;
return;
}
#define PROC_PARTITIONS "/proc/partitions"

View File

@@ -122,7 +122,6 @@ static void scan_dir(char *dir_name, dev_t devno, struct dir_list **list,
}
}
closedir(dir);
return;
}
/* Directories where we will try to search for device numbers */

View File

@@ -410,7 +410,6 @@ void blkid_read_cache(blkid_cache cache)
return;
errout:
close(fd);
return;
}
#ifdef TEST_PROGRAM

View File

@@ -2286,7 +2286,6 @@ err_out:
fix_problem(ctx, PR_0_ERR_MOVE_JOURNAL, &pctx);
fs->super->s_state &= ~EXT2_VALID_FS;
ext2fs_mark_super_dirty(fs);
return;
}
/*
@@ -7328,8 +7327,6 @@ static void fix_dotdot(e2fsck_t ctx, struct dir_info *dir, ext2_ino_t parent)
ext2fs_unmark_valid(fs);
}
dir->dotdot = parent;
return;
}
/*
@@ -11969,7 +11966,6 @@ static void check_super_block(e2fsck_t ctx)
* Move the ext3 journal file, if necessary.
*/
e2fsck_move_ext3_journal(ctx);
return;
}
/*
@@ -12666,7 +12662,6 @@ static void check_mount(e2fsck_t ctx)
printf(_("check aborted.\n"));
exit (0);
}
return;
}
static int is_on_batt(void)

View File

@@ -105,8 +105,6 @@ void ext2fs_set_bitmap_padding(ext2fs_generic_bitmap map)
for (i=map->end+1, j = i - map->start; i <= map->real_end; i++, j++)
ext2fs_set_bit(j, map->bitmap);
return;
}
errcode_t ext2fs_allocate_inode_bitmap(ext2_filsys fs,

View File

@@ -178,7 +178,6 @@ void ext2fs_close_inode_scan(ext2_inode_scan scan)
ext2fs_free_mem(&scan->temp_buffer);
scan->temp_buffer = NULL;
ext2fs_free_mem(&scan);
return;
}
void ext2fs_set_inode_callback(ext2_inode_scan scan,

View File

@@ -372,7 +372,6 @@ static void free_instance(struct fsck_instance *i)
if (i->base_device)
free(i->base_device);
free(i);
return;
}
static struct fs_info *create_fs_device(const char *device, const char *mntpnt,

View File

@@ -164,7 +164,6 @@ static void set_fs_defaults(const char *fs_type,
static void invalid_block(ext2_filsys fs EXT2FS_ATTR((unused)), blk_t blk)
{
bb_error_msg("Bad block %u out of range; ignored", blk);
return;
}
/*

View File

@@ -340,7 +340,6 @@ static void add_journal(ext2_filsys fs)
fs->flags &= ~EXT2_FLAG_SUPER_ONLY;
}
print_check_message(fs);
return;
}
/*

View File

@@ -117,7 +117,6 @@ static void get_random_bytes(void *buf, int nbytes)
*/
for (cp = buf, i = 0; i < nbytes; i++)
*cp++ ^= (rand() >> 7) & 0xFF;
return;
}
/*