> >     if (dev) {
> > -        object_property_set_link(OBJECT(s), OBJECT(dev),
> > -                                 "device", &local_err);
> > -        object_property_set_int(OBJECT(s), head,
> > -                                "head", &local_err);
> > +        object_property_set_link(OBJECT(s), OBJECT(dev), "device", NULL);
> > +        object_property_set_int(OBJECT(s), head, "head", NULL);
> 
> I guess it would be better to use &error_abort rather than failing
> silently.

Agree.

cheers,
  Gerd



Reply via email to