summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-delay.c
diff options
context:
space:
mode:
authorNikanth Karthikesan <knikanth@novell.com>2010-03-06 02:32:27 +0000
committerAlasdair G Kergon <agk@redhat.com>2010-03-06 02:32:27 +0000
commit8215d6ec5fee1e76545decea2cd73717efb5cb42 (patch)
tree54ed2c995c3b91417def0ad31368e3094f72bd81 /drivers/md/dm-delay.c
parent0f3649a9e305ea22eb196a84a2d7520afcaa6060 (diff)
downloadop-kernel-dev-8215d6ec5fee1e76545decea2cd73717efb5cb42.zip
op-kernel-dev-8215d6ec5fee1e76545decea2cd73717efb5cb42.tar.gz
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-delay.c')
-rw-r--r--drivers/md/dm-delay.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/dm-delay.c b/drivers/md/dm-delay.c
index ebe7381..8520528 100644
--- a/drivers/md/dm-delay.c
+++ b/drivers/md/dm-delay.c
@@ -156,8 +156,8 @@ static int delay_ctr(struct dm_target *ti, unsigned int argc, char **argv)
goto bad;
}
- if (dm_get_device(ti, argv[0], dc->start_read, ti->len,
- dm_table_get_mode(ti->table), &dc->dev_read)) {
+ if (dm_get_device(ti, argv[0], dm_table_get_mode(ti->table),
+ &dc->dev_read)) {
ti->error = "Device lookup failed";
goto bad;
}
@@ -177,8 +177,8 @@ static int delay_ctr(struct dm_target *ti, unsigned int argc, char **argv)
goto bad_dev_read;
}
- if (dm_get_device(ti, argv[3], dc->start_write, ti->len,
- dm_table_get_mode(ti->table), &dc->dev_write)) {
+ if (dm_get_device(ti, argv[3], dm_table_get_mode(ti->table),
+ &dc->dev_write)) {
ti->error = "Write device lookup failed";
goto bad_dev_read;
}
OpenPOWER on IntegriCloud