diff options
author | Markus Armbruster <armbru@redhat.com> | 2018-12-13 18:58:07 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2018-12-18 14:57:48 +0100 |
commit | 92917cd25103569ad8992dbc5b4dc2dcacfdda7f (patch) | |
tree | c886a749dc62eee126a2c1eb1a618e957ee9a7f9 /vl.c | |
parent | bcdc5081901e172a4b7c5ecc2faa2d4eae1f67a9 (diff) |
vl: Use error_fatal to simplify obvious fatal errors (again)
Patch created mechanically by rerunning:
$ spatch --in-place --sp-file scripts/coccinelle/use-error_fatal.cocci \
--macro-file scripts/cocci-macro-file.h vl.c
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20181213175807.12039-1-armbru@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -3133,11 +3133,8 @@ int main(int argc, char **argv, char **envp) Visitor *v; BlockdevOptions_queue *bdo; - v = qobject_input_visitor_new_str(optarg, "driver", &err); - if (!v) { - error_report_err(err); - exit(1); - } + v = qobject_input_visitor_new_str(optarg, "driver", + &error_fatal); bdo = g_new(BlockdevOptions_queue, 1); visit_type_BlockdevOptions(v, NULL, &bdo->bdo, |