From e478b448d7c36046462733ffaeaea0961575790a Mon Sep 17 00:00:00 2001 From: Dong Xu Wang Date: Thu, 6 Dec 2012 14:47:22 +0800 Subject: use qemu_opts_create_nofail We will use qemu_opts_create_nofail function, it can make code more readable. Signed-off-by: Dong Xu Wang Signed-off-by: Kevin Wolf --- hw/watchdog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/watchdog.c') diff --git a/hw/watchdog.c b/hw/watchdog.c index b52aced..5c82c17 100644 --- a/hw/watchdog.c +++ b/hw/watchdog.c @@ -66,7 +66,7 @@ int select_watchdog(const char *p) QLIST_FOREACH(model, &watchdog_list, entry) { if (strcasecmp(model->wdt_name, p) == 0) { /* add the device */ - opts = qemu_opts_create(qemu_find_opts("device"), NULL, 0, NULL); + opts = qemu_opts_create_nofail(qemu_find_opts("device")); qemu_opt_set(opts, "driver", p); return 0; } -- cgit v1.1