]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target/ppc/compat.c
error: Eliminate error_propagate() with Coccinelle, part 1
[mirror_qemu.git] / target / ppc / compat.c
index 42f87a4bfe3b1273dc90d1e6a034b086722d7f0e..08aede88dc1d3d559dbb94bc82a67a19d3843d48 100644 (file)
@@ -260,12 +260,10 @@ static void ppc_compat_prop_get(Object *obj, Visitor *v, const char *name,
 static void ppc_compat_prop_set(Object *obj, Visitor *v, const char *name,
                                 void *opaque, Error **errp)
 {
-    Error *local_err = NULL;
     char *value;
     uint32_t compat_pvr;
 
-    if (!visit_type_str(v, name, &value, &local_err)) {
-        error_propagate(errp, local_err);
+    if (!visit_type_str(v, name, &value, errp)) {
         return;
     }