Re: [PATCH v3 27/44] qom: Use returned bool to check for failure, Coccinelle part

2020-07-06 Thread Vladimir Sementsov-Ogievskiy
On 06.07.2020 11:09, Markus Armbruster wrote: The previous commit enables conversion of foo(..., ); if (err) { ... } to if (!foo(..., errp)) { ... } for QOM functions that now return true / false on success / error. Coccinelle script: @@

[PATCH v3 27/44] qom: Use returned bool to check for failure, Coccinelle part

2020-07-06 Thread Markus Armbruster
The previous commit enables conversion of foo(..., ); if (err) { ... } to if (!foo(..., errp)) { ... } for QOM functions that now return true / false on success / error. Coccinelle script: @@ identifier fun = { object_apply_global_props,