mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Cleanup returns for void functions.
This commit is contained in:
parent
735308699c
commit
b1ebf028de
@ -327,8 +327,6 @@ void pvdisplay_colons(const struct physical_volume *pv)
|
|||||||
pv->pe_count,
|
pv->pe_count,
|
||||||
pv->pe_count - pv->pe_alloc_count,
|
pv->pe_count - pv->pe_alloc_count,
|
||||||
pv->pe_alloc_count, *uuid ? uuid : "none");
|
pv->pe_alloc_count, *uuid ? uuid : "none");
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void pvdisplay_segments(const struct physical_volume *pv)
|
void pvdisplay_segments(const struct physical_volume *pv)
|
||||||
@ -355,7 +353,6 @@ void pvdisplay_segments(const struct physical_volume *pv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
log_print(" ");
|
log_print(" ");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME Include label fields */
|
/* 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("Allocated PE %u", pv->pe_alloc_count);
|
||||||
log_print("PV UUID %s", *uuid ? uuid : "none");
|
log_print("PV UUID %s", *uuid ? uuid : "none");
|
||||||
log_print(" ");
|
log_print(" ");
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int pvdisplay_short(const struct cmd_context *cmd __attribute((unused)),
|
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, */
|
/* FIXME Add num allocated to struct! lv->lv_allocated_le, */
|
||||||
(lv->alloc == ALLOC_CONTIGUOUS ? 2 : 0), lv->read_ahead,
|
(lv->alloc == ALLOC_CONTIGUOUS ? 2 : 0), lv->read_ahead,
|
||||||
inkernel ? info.major : -1, inkernel ? info.minor : -1);
|
inkernel ? info.major : -1, inkernel ? info.minor : -1);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int lvdisplay_full(struct cmd_context *cmd,
|
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)))
|
void vgdisplay_extents(const struct volume_group *vg __attribute((unused)))
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void vgdisplay_full(const struct volume_group *vg)
|
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("VG UUID %s", uuid);
|
||||||
log_print(" ");
|
log_print(" ");
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void vgdisplay_colons(const struct volume_group *vg)
|
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->extent_count - vg->free_count,
|
||||||
vg->free_count,
|
vg->free_count,
|
||||||
uuid[0] ? uuid : "none");
|
uuid[0] ? uuid : "none");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void vgdisplay_short(const struct volume_group *vg)
|
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 -
|
((uint64_t) vg->extent_count -
|
||||||
vg->free_count) * vg->extent_size),
|
vg->free_count) * vg->extent_size),
|
||||||
display_size(vg->cmd, vg_free(vg)));
|
display_size(vg->cmd, vg_free(vg)));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void display_formats(const struct cmd_context *cmd)
|
void display_formats(const struct cmd_context *cmd)
|
||||||
|
@ -171,8 +171,6 @@ static void _write_array(struct pfilter *pf, FILE *fp, const char *path,
|
|||||||
|
|
||||||
if (!first)
|
if (!first)
|
||||||
fprintf(fp, "\n\t]\n");
|
fprintf(fp, "\n\t]\n");
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int persistent_filter_dump(struct dev_filter *f)
|
int persistent_filter_dump(struct dev_filter *f)
|
||||||
|
@ -331,5 +331,4 @@ struct dev_filter *lvm_type_filter_create(const char *proc,
|
|||||||
void lvm_type_filter_destroy(struct dev_filter *f)
|
void lvm_type_filter_destroy(struct dev_filter *f)
|
||||||
{
|
{
|
||||||
dm_free(f);
|
dm_free(f);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
@ -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)))
|
static void _format1_destroy_instance(struct format_instance *fid __attribute((unused)))
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _format1_destroy(const struct format_type *fmt)
|
static void _format1_destroy(const struct format_type *fmt)
|
||||||
|
@ -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)))
|
static void _lvm1_destroy_label(struct labeller *l __attribute((unused)), struct label *label __attribute((unused)))
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _lvm1_destroy(struct labeller *l)
|
static void _lvm1_destroy(struct labeller *l)
|
||||||
|
@ -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)))
|
static void _pool_destroy_instance(struct format_instance *fid __attribute((unused)))
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _pool_destroy(const struct format_type *fmt)
|
static void _pool_destroy(const struct format_type *fmt)
|
||||||
|
@ -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)))
|
static void _pool_destroy_label(struct labeller *l __attribute((unused)), struct label *label __attribute((unused)))
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _label_pool_destroy(struct labeller *l)
|
static void _label_pool_destroy(struct labeller *l)
|
||||||
|
@ -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)))
|
static void _text_destroy_instance(struct format_instance *fid __attribute((unused)))
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _free_dirs(struct dm_list *dir_list)
|
static void _free_dirs(struct dm_list *dir_list)
|
||||||
|
@ -145,8 +145,6 @@ static void _block_signals(uint32_t flags __attribute((unused)))
|
|||||||
}
|
}
|
||||||
|
|
||||||
_signals_blocked = 1;
|
_signals_blocked = 1;
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _unblock_signals(void)
|
static void _unblock_signals(void)
|
||||||
@ -161,8 +159,6 @@ static void _unblock_signals(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
_signals_blocked = 0;
|
_signals_blocked = 0;
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _lock_memory(lv_operation_t lv_op)
|
static void _lock_memory(lv_operation_t lv_op)
|
||||||
|
@ -27,12 +27,10 @@
|
|||||||
|
|
||||||
static void _no_fin_locking(void)
|
static void _no_fin_locking(void)
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _no_reset_locking(void)
|
static void _no_reset_locking(void)
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int _no_lock_resource(struct cmd_context *cmd, const char *resource,
|
static int _no_lock_resource(struct cmd_context *cmd, const char *resource,
|
||||||
|
@ -125,7 +125,7 @@ static void _unquote_characters(char *src, const int orig_char,
|
|||||||
*/
|
*/
|
||||||
static void _quote_hyphens(char **out, const char *src)
|
static void _quote_hyphens(char **out, const char *src)
|
||||||
{
|
{
|
||||||
return _quote_characters(out, src, '-', '-', 0);
|
_quote_characters(out, src, '-', '-', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -268,7 +268,7 @@ static int _add_to_toplevel(struct dm_tree_node *node)
|
|||||||
|
|
||||||
static void _remove_from_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)
|
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)
|
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)
|
static int _link_tree_nodes(struct dm_tree_node *parent, struct dm_tree_node *child)
|
||||||
|
@ -2571,7 +2571,6 @@ static void _usage(FILE *out)
|
|||||||
fprintf(out, "Tree options are: ascii, utf, vt100; compact, inverted, notrunc;\n"
|
fprintf(out, "Tree options are: ascii, utf, vt100; compact, inverted, notrunc;\n"
|
||||||
" [no]device, active, open, rw and uuid.\n");
|
" [no]device, active, open, rw and uuid.\n");
|
||||||
fprintf(out, "\n");
|
fprintf(out, "\n");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _losetup_usage(FILE *out)
|
static void _losetup_usage(FILE *out)
|
||||||
|
@ -102,8 +102,6 @@ void lvm2_log_level(void *handle, int level)
|
|||||||
struct cmd_context *cmd = (struct cmd_context *) handle;
|
struct cmd_context *cmd = (struct cmd_context *) handle;
|
||||||
|
|
||||||
cmd->default_settings.verbose = level - VERBOSE_BASE_LEVEL;
|
cmd->default_settings.verbose = level - VERBOSE_BASE_LEVEL;
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void lvm2_log_fn(lvm2_log_fn_t log_fn)
|
void lvm2_log_fn(lvm2_log_fn_t log_fn)
|
||||||
|
@ -94,7 +94,6 @@ static void _pvscan_display_single(struct cmd_context *cmd,
|
|||||||
display_size(cmd, (uint64_t) (pv_pe_count(pv) -
|
display_size(cmd, (uint64_t) (pv_pe_count(pv) -
|
||||||
pv_pe_alloc_count(pv)) *
|
pv_pe_alloc_count(pv)) *
|
||||||
pv_pe_size(pv)));
|
pv_pe_size(pv)));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int pvscan(struct cmd_context *cmd, int argc __attribute((unused)),
|
int pvscan(struct cmd_context *cmd, int argc __attribute((unused)),
|
||||||
|
Loading…
Reference in New Issue
Block a user