Follow C norm and do not use 'return' in void function to call other
functions.
static inline void lvmlockd_close(daemon_handle h)
{
- return daemon_close(h);
+ daemon_close(h);
}
/*
free_hints(&cmd->hints);
if (_hints_fd == -1)
return;
- return _unlock_hints(cmd);
+ _unlock_hints(cmd);
}
void free_hints(struct dm_list *hints)
{
switch (_base_commands[_base_command].type) {
case DMSETUP_TYPE:
- return _dmsetup_usage(out);
+ _dmsetup_usage(out);
+ break;
case LOSETUP_TYPE:
- return _losetup_usage(out);
+ _losetup_usage(out);
+ break;
case STATS_TYPE:
- return _stats_usage(out);
+ _stats_usage(out);
+ break;
case DEVMAP_NAME_TYPE:
- return _devmap_name_usage(out);
+ _devmap_name_usage(out);
+ break;
}
}
if (!dms->regions)
return;
- if (!(*flags & (DM_STATS_WALK_AREA | DM_STATS_WALK_REGION)))
- return _group_walk_start(dms, flags, cur_r, cur_a, cur_g);
+ if (!(*flags & (DM_STATS_WALK_AREA | DM_STATS_WALK_REGION))) {
+ _group_walk_start(dms, flags, cur_r, cur_a, cur_g);
+ return;
+ }
/* initialise cursor state */
*cur_a = 0;