diff options
author | Nikanth Karthikesan <knikanth@novell.com> | 2010-03-05 21:32:27 -0500 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2010-03-05 21:32:27 -0500 |
commit | 8215d6ec5fee1e76545decea2cd73717efb5cb42 (patch) | |
tree | 54ed2c995c3b91417def0ad31368e3094f72bd81 /drivers/md/dm-crypt.c | |
parent | 0f3649a9e305ea22eb196a84a2d7520afcaa6060 (diff) |
dm table: remove unused dm_get_device range parameters
Remove unused parameters(start and len) of dm_get_device()
and fix the callers.
Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-crypt.c')
-rw-r--r-- | drivers/md/dm-crypt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index a93637223c8d..3bdbb6115702 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c | |||
@@ -1160,8 +1160,7 @@ static int crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv) | |||
1160 | } | 1160 | } |
1161 | cc->start = tmpll; | 1161 | cc->start = tmpll; |
1162 | 1162 | ||
1163 | if (dm_get_device(ti, argv[3], cc->start, ti->len, | 1163 | if (dm_get_device(ti, argv[3], dm_table_get_mode(ti->table), &cc->dev)) { |
1164 | dm_table_get_mode(ti->table), &cc->dev)) { | ||
1165 | ti->error = "Device lookup failed"; | 1164 | ti->error = "Device lookup failed"; |
1166 | goto bad_device; | 1165 | goto bad_device; |
1167 | } | 1166 | } |