commit | 3894c78764e1e6d8ef82c7c097749d10cf8c3981 | [log] [tgz] |
---|---|---|
author | Markus Armbruster <armbru@redhat.com> | Mon May 19 18:57:36 2014 +0200 |
committer | Gerd Hoffmann <kraxel@redhat.com> | Wed May 21 11:57:58 2014 +0200 |
tree | 396605853d833088eb940e03b62d76ac3046f696 | |
parent | 0aff637e920c0cdb74338c6f57005f2d7cab63d6 [diff] |
char: Explain qmp_chardev_add()'s unusual error handling Character backend open hasn't been fully converted to the Error API. Some opens fail without setting an error. qmp_chardev_add() needs to detect when that happens, and set a generic error. Explain that in a comment, and inline error_is_set() for clarity. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>