* [PATCH] dm-ioctl: Remove useless __dev_status call for "device geometry" and "target message" ioctl
@ 2010-05-18 13:51 Peter Rajnoha
0 siblings, 0 replies; only message in thread
From: Peter Rajnoha @ 2010-05-18 13:51 UTC (permalink / raw)
To: dm-devel; +Cc: Alasdair G Kergon
Remove useless __dev_status call while processing an ioctl that sets up
device geometry and target message.
Signed-off-by: Peter Rajnoha <prajnoha@redhat.com>
---
drivers/md/dm-ioctl.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index f67ec28..afb641c 100644
--- a/drivers/md/dm-ioctl.c
+++ b/drivers/md/dm-ioctl.c
@@ -818,8 +818,6 @@ static int dev_set_geometry(struct dm_ioctl *param, size_t param_size)
geometry.start = indata[3];
r = dm_set_geometry(md, &geometry);
- if (!r)
- r = __dev_status(md, param);
param->data_size = 0;
@@ -1333,10 +1331,6 @@ static int target_message(struct dm_ioctl *param, size_t param_size)
if (!md)
return -ENXIO;
- r = __dev_status(md, param);
- if (r)
- goto out;
-
if (tmsg < (struct dm_target_msg *) param->data ||
invalid_str(tmsg->message, (void *) param + param_size)) {
DMWARN("Invalid target message parameters.");
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-18 13:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-18 13:51 [PATCH] dm-ioctl: Remove useless __dev_status call for "device geometry" and "target message" ioctl Peter Rajnoha
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.