mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user