daemon: btrfs: remove dead check

In btrfs_subvolume_show, an extra check on 'key' is used in a place
where this variable is already checked to be non-null.
This commit is contained in:
Pino Toscano
2017-11-03 16:33:09 +01:00
parent 62c9d5d8ca
commit 8213a572e4

View File

@@ -990,7 +990,7 @@ do_btrfs_subvolume_show (const char *subvolume)
return NULL;
}
} else {
if (add_string (&ret, key ? key : "") == -1)
if (add_string (&ret, key) == -1)
return NULL;
if (value && !STREQ (value, "-")) {
if (add_string (&ret, value) == -1)