summaryrefslogtreecommitdiff
path: root/lib/format_text
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-07-20 09:57:09 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2017-07-20 11:20:44 +0200
commit48ce8c7a49a963a3d1357ad2b964f46902a2c163 (patch)
tree29c4042b30a99c431c8a1cff18c1aee408e6382c /lib/format_text
parent4a2994b7b1ff4a09f250f6389894a3072d7e3acd (diff)
downloadlvm2-48ce8c7a49a963a3d1357ad2b964f46902a2c163.tar.gz
tidy: drop unneeded cast
Avoid casting to the same type.
Diffstat (limited to 'lib/format_text')
-rw-r--r--lib/format_text/format-text.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/format_text/format-text.c b/lib/format_text/format-text.c
index 91f88162b..7db4637d4 100644
--- a/lib/format_text/format-text.c
+++ b/lib/format_text/format-text.c
@@ -2291,9 +2291,9 @@ static int _text_pv_add_metadata_area(const struct format_type *fmt,
}
/* Wipe metadata area with zeroes. */
- if (!dev_set((struct device *) pv->dev, mda_start,
- (size_t) ((mda_size > wipe_size) ?
- wipe_size : mda_size), 0)) {
+ if (!dev_set(pv->dev, mda_start,
+ (size_t) ((mda_size > wipe_size) ?
+ wipe_size : mda_size), 0)) {
log_error("Failed to wipe new metadata area "
"at the %s of the %s",
mda_index ? "end" : "start",