1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Remove unused passed parameters

This commit is contained in:
Zdenek Kabelac 2011-09-07 08:37:48 +00:00
parent f32b76a193
commit beecb1e160
2 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,6 @@
Version 1.02.68 -
==================================
Remove unused passed parameters for _mirror_emit_segment_line().
Add dm_config and string character escaping functions to libdevmapper.
Mark unreleased memory pools as internal error.

View File

@ -1594,10 +1594,8 @@ static int _replicator_emit_segment_line(const struct load_segment *seg, char *p
/*
* Returns: 1 on success, 0 on failure
*/
static int _mirror_emit_segment_line(struct dm_task *dmt, uint32_t major,
uint32_t minor, struct load_segment *seg,
uint64_t *seg_start, char *params,
size_t paramsize)
static int _mirror_emit_segment_line(struct dm_task *dmt, struct load_segment *seg,
char *params, size_t paramsize)
{
int block_on_error = 0;
int handle_errors = 0;
@ -1784,8 +1782,7 @@ static int _emit_segment_line(struct dm_task *dmt, uint32_t major,
break;
case SEG_MIRRORED:
/* Mirrors are pretty complicated - now in separate function */
r = _mirror_emit_segment_line(dmt, major, minor, seg, seg_start,
params, paramsize);
r = _mirror_emit_segment_line(dmt, seg, params, paramsize);
if (!r)
return_0;
break;