diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2017-07-20 09:57:09 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2017-07-20 11:20:44 +0200 |
commit | 48ce8c7a49a963a3d1357ad2b964f46902a2c163 (patch) | |
tree | 29c4042b30a99c431c8a1cff18c1aee408e6382c /lib/format_text | |
parent | 4a2994b7b1ff4a09f250f6389894a3072d7e3acd (diff) | |
download | lvm2-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.c | 6 |
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", |