1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Cleanup returns for void functions.

This commit is contained in:
zkabelac 2009-12-11 13:16:37 +00:00
parent abc760c8e4
commit b1f8076da0
15 changed files with 3 additions and 32 deletions

View File

@ -327,8 +327,6 @@ void pvdisplay_colons(const struct physical_volume *pv)
pv->pe_count,
pv->pe_count - pv->pe_alloc_count,
pv->pe_alloc_count, *uuid ? uuid : "none");
return;
}
void pvdisplay_segments(const struct physical_volume *pv)
@ -355,7 +353,6 @@ void pvdisplay_segments(const struct physical_volume *pv)
}
log_print(" ");
return;
}
/* FIXME Include label fields */
@ -424,8 +421,6 @@ void pvdisplay_full(const struct cmd_context *cmd,
log_print("Allocated PE %u", pv->pe_alloc_count);
log_print("PV UUID %s", *uuid ? uuid : "none");
log_print(" ");
return;
}
int pvdisplay_short(const struct cmd_context *cmd __attribute((unused)),
@ -470,7 +465,6 @@ void lvdisplay_colons(const struct logical_volume *lv)
/* FIXME Add num allocated to struct! lv->lv_allocated_le, */
(lv->alloc == ALLOC_CONTIGUOUS ? 2 : 0), lv->read_ahead,
inkernel ? info.major : -1, inkernel ? info.minor : -1);
return;
}
int lvdisplay_full(struct cmd_context *cmd,
@ -654,7 +648,6 @@ int lvdisplay_segments(const struct logical_volume *lv)
void vgdisplay_extents(const struct volume_group *vg __attribute((unused)))
{
return;
}
void vgdisplay_full(const struct volume_group *vg)
@ -729,8 +722,6 @@ void vgdisplay_full(const struct volume_group *vg)
log_print("VG UUID %s", uuid);
log_print(" ");
return;
}
void vgdisplay_colons(const struct volume_group *vg)
@ -779,7 +770,6 @@ void vgdisplay_colons(const struct volume_group *vg)
vg->extent_count - vg->free_count,
vg->free_count,
uuid[0] ? uuid : "none");
return;
}
void vgdisplay_short(const struct volume_group *vg)
@ -792,7 +782,6 @@ void vgdisplay_short(const struct volume_group *vg)
((uint64_t) vg->extent_count -
vg->free_count) * vg->extent_size),
display_size(vg->cmd, vg_free(vg)));
return;
}
void display_formats(const struct cmd_context *cmd)

View File

@ -171,8 +171,6 @@ static void _write_array(struct pfilter *pf, FILE *fp, const char *path,
if (!first)
fprintf(fp, "\n\t]\n");
return;
}
int persistent_filter_dump(struct dev_filter *f)

View File

@ -331,5 +331,4 @@ struct dev_filter *lvm_type_filter_create(const char *proc,
void lvm_type_filter_destroy(struct dev_filter *f)
{
dm_free(f);
return;
}

View File

@ -480,7 +480,6 @@ static struct format_instance *_format1_create_instance(const struct format_type
static void _format1_destroy_instance(struct format_instance *fid __attribute((unused)))
{
return;
}
static void _format1_destroy(const struct format_type *fmt)

View File

@ -96,7 +96,6 @@ static int _lvm1_initialise_label(struct labeller *l __attribute((unused)), stru
static void _lvm1_destroy_label(struct labeller *l __attribute((unused)), struct label *label __attribute((unused)))
{
return;
}
static void _lvm1_destroy(struct labeller *l)

View File

@ -281,7 +281,6 @@ static struct format_instance *_pool_create_instance(const struct format_type *f
static void _pool_destroy_instance(struct format_instance *fid __attribute((unused)))
{
return;
}
static void _pool_destroy(const struct format_type *fmt)

View File

@ -73,7 +73,6 @@ static int _pool_initialise_label(struct labeller *l __attribute((unused)), stru
static void _pool_destroy_label(struct labeller *l __attribute((unused)), struct label *label __attribute((unused)))
{
return;
}
static void _label_pool_destroy(struct labeller *l)

View File

@ -1593,7 +1593,6 @@ static int _text_pv_read(const struct format_type *fmt, const char *pv_name,
static void _text_destroy_instance(struct format_instance *fid __attribute((unused)))
{
return;
}
static void _free_dirs(struct dm_list *dir_list)

View File

@ -145,8 +145,6 @@ static void _block_signals(uint32_t flags __attribute((unused)))
}
_signals_blocked = 1;
return;
}
static void _unblock_signals(void)
@ -161,8 +159,6 @@ static void _unblock_signals(void)
}
_signals_blocked = 0;
return;
}
static void _lock_memory(lv_operation_t lv_op)

View File

@ -27,12 +27,10 @@
static void _no_fin_locking(void)
{
return;
}
static void _no_reset_locking(void)
{
return;
}
static int _no_lock_resource(struct cmd_context *cmd, const char *resource,

View File

@ -125,7 +125,7 @@ static void _unquote_characters(char *src, const int orig_char,
*/
static void _quote_hyphens(char **out, const char *src)
{
return _quote_characters(out, src, '-', '-', 0);
_quote_characters(out, src, '-', '-', 0);
}
/*

View File

@ -268,7 +268,7 @@ static int _add_to_toplevel(struct dm_tree_node *node)
static void _remove_from_toplevel(struct dm_tree_node *node)
{
return _unlink_nodes(&node->dtree->root, node);
_unlink_nodes(&node->dtree->root, node);
}
static int _add_to_bottomlevel(struct dm_tree_node *node)
@ -278,7 +278,7 @@ static int _add_to_bottomlevel(struct dm_tree_node *node)
static void _remove_from_bottomlevel(struct dm_tree_node *node)
{
return _unlink_nodes(node, &node->dtree->root);
_unlink_nodes(node, &node->dtree->root);
}
static int _link_tree_nodes(struct dm_tree_node *parent, struct dm_tree_node *child)

View File

@ -2571,7 +2571,6 @@ static void _usage(FILE *out)
fprintf(out, "Tree options are: ascii, utf, vt100; compact, inverted, notrunc;\n"
" [no]device, active, open, rw and uuid.\n");
fprintf(out, "\n");
return;
}
static void _losetup_usage(FILE *out)

View File

@ -102,8 +102,6 @@ void lvm2_log_level(void *handle, int level)
struct cmd_context *cmd = (struct cmd_context *) handle;
cmd->default_settings.verbose = level - VERBOSE_BASE_LEVEL;
return;
}
void lvm2_log_fn(lvm2_log_fn_t log_fn)

View File

@ -94,7 +94,6 @@ static void _pvscan_display_single(struct cmd_context *cmd,
display_size(cmd, (uint64_t) (pv_pe_count(pv) -
pv_pe_alloc_count(pv)) *
pv_pe_size(pv)));
return;
}
int pvscan(struct cmd_context *cmd, int argc __attribute((unused)),