From 9a451e6faa634e7760f609cdf8feecb3106f2f6e Mon Sep 17 00:00:00 2001 From: "David H. Gutteridge" Date: Mon, 13 Feb 2017 19:42:38 -0500 Subject: [PATCH] Remove minor redundancy in action_remove_device() There's no need to call util.listify() twice. --- virt-xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt-xml b/virt-xml index 39ca18e8b..93201f89c 100755 --- a/virt-xml +++ b/virt-xml @@ -217,7 +217,7 @@ def action_remove_device(guest, options, parserclass): getattr(options, parserclass.cli_arg_name)[-1], parserclass) devs = util.listify(devs) - for dev in util.listify(devs): + for dev in devs: guest.remove_device(dev) return devs