From: Zdenek Kabelac Date: Wed, 7 Sep 2011 08:37:48 +0000 (+0000) Subject: Remove unused passed parameters X-Git-Tag: old-v2_02_89~518 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=83ca5e6d5c8886cca0b1ad9965f5fb5d978e0794;p=lvm2.git Remove unused passed parameters --- diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index b05f4f0eb..a761f1ba1 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -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. diff --git a/libdm/libdm-deptree.c b/libdm/libdm-deptree.c index 5439f7ace..0db8de2e5 100644 --- a/libdm/libdm-deptree.c +++ b/libdm/libdm-deptree.c @@ -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;