Signed-off-by: Lin Ma <l...@suse.com>
---
 tools/virsh-interface.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/tools/virsh-interface.c b/tools/virsh-interface.c
index 13e120d7a0..df97b74c4c 100644
--- a/tools/virsh-interface.c
+++ b/tools/virsh-interface.c
@@ -440,11 +440,7 @@ static const vshCmdInfo info_interface_mac[] = {
 };
 
 static const vshCmdOptDef opts_interface_mac[] = {
-    {.name = "interface",
-     .type = VSH_OT_DATA,
-     .flags = VSH_OFLAG_REQ,
-     .help = N_("interface name")
-    },
+    VIRSH_COMMON_OPT_INTERFACE(N_("interface name"), 0),
     {.name = NULL}
 };
 
-- 
2.26.0


Reply via email to