On Fri, 15 Feb 2019, Markus Elfring wrote:
> > +@search exists@
> > +local idexpression id;
> > +expression x,e,e1;
> > +position p1,p2;
> > +type T,T1,T2,T3;
> > +@@
> > +
> > +id = of_find_device_by_node@p1(x)
> > +... when != e = id
> > +if (id == NULL || ...) { ... return ...; }
> > +... whe
> +@search exists@
> +local idexpression id;
> +expression x,e,e1;
> +position p1,p2;
> +type T,T1,T2,T3;
> +@@
> +
> +id = of_find_device_by_node@p1(x)
> +... when != e = id
> +if (id == NULL || ...) { ... return ...; }
> +... when != put_device(&id->dev)
…
> +when != if (id) { ... put_device(
> In a function, for a local variable returned by calling
> of_find_device_by_node(),
I suggest to reconsider this information once more.
1. Will an other wording be more appropriate for the storage of
a function return value?
2. Can the restriction “local” be omitted?
3. Will any macros be
3 matches
Mail list logo