error: More error_setg() usage

A few uses of error_set(ERROR_CLASS_GENERIC_ERROR) were missed in
c6bd8c706, or have snuck in since. Nuke them.

Backports commit 455b0fde8c38a0794743e2e7c1a40018b7bee9f6 from qemu
This commit is contained in:
Eric Blake 2018-02-17 18:03:32 -05:00 committed by Lioncash
parent 60975685ce
commit 085a89bef5
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -1110,8 +1110,8 @@ static Object *object_resolve_link(struct uc_struct *uc, Object *obj, const char
target = object_resolve_path_type(uc, path, target_type, &ambiguous);
if (ambiguous) {
error_set(errp, ERROR_CLASS_GENERIC_ERROR,
"Path '%s' does not uniquely identify an object", path);
error_setg(errp, "Path '%s' does not uniquely identify an object",
path);
} else if (!target) {
target = object_resolve_path(uc, path, &ambiguous);
if (target || ambiguous) {