mirror of
https://github.com/systemd/systemd.git
synced 2024-11-14 15:21:37 +03:00
udev-builtin-blkid: remove dead code
This commit is contained in:
parent
36d239dbda
commit
8a39439e08
@ -226,7 +226,6 @@ static int builtin_blkid(struct udev_device *dev, int argc, char *argv[], bool t
|
|||||||
const char *name;
|
const char *name;
|
||||||
int nvals;
|
int nvals;
|
||||||
int i;
|
int i;
|
||||||
size_t len;
|
|
||||||
int err = 0;
|
int err = 0;
|
||||||
bool is_gpt = false;
|
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);
|
nvals = blkid_probe_numof_values(pr);
|
||||||
for (i = 0; i < nvals; i++) {
|
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;
|
continue;
|
||||||
|
|
||||||
len = strnlen((char *) data, len);
|
print_property(dev, test, name, data);
|
||||||
print_property(dev, test, name, (char *) data);
|
|
||||||
|
|
||||||
/* Is this a disk with GPT partition table? */
|
/* Is this a disk with GPT partition table? */
|
||||||
if (streq(name, "PTTYPE") && streq(data, "gpt"))
|
if (streq(name, "PTTYPE") && streq(data, "gpt"))
|
||||||
|
Loading…
Reference in New Issue
Block a user