summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-03-07 14:37:01 +0100
committerKay Sievers <kay@vrfy.org>2014-03-07 14:39:20 +0100
commit8a39439e08cf14c22e9f1ca5e69d1ba499075051 (patch)
treeb1012174044575ca5d009efc66d1585893c94319
parent36d239dbdaf94ba2d96bb60ac45ecfc58624b1eb (diff)
udev-builtin-blkid: remove dead code
-rw-r--r--src/udev/udev-builtin-blkid.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/udev/udev-builtin-blkid.c b/src/udev/udev-builtin-blkid.c
index 5b976abd8d..db652f7a6e 100644
--- a/src/udev/udev-builtin-blkid.c
+++ b/src/udev/udev-builtin-blkid.c
@@ -226,7 +226,6 @@ static int builtin_blkid(struct udev_device *dev, int argc, char *argv[], bool t
const char *name;
int nvals;
int i;
- size_t len;
int err = 0;
bool is_gpt = false;
@@ -289,11 +288,10 @@ static int builtin_blkid(struct udev_device *dev, int argc, char *argv[], bool t
nvals = blkid_probe_numof_values(pr);
for (i = 0; i < nvals; i++) {
- if (blkid_probe_get_value(pr, i, &name, &data, &len))
+ if (blkid_probe_get_value(pr, i, &name, &data, NULL))
continue;
- len = strnlen((char *) data, len);
- print_property(dev, test, name, (char *) data);
+ print_property(dev, test, name, data);
/* Is this a disk with GPT partition table? */
if (streq(name, "PTTYPE") && streq(data, "gpt"))