On Wed 09 Sep 2020 08:59:19 PM CEST, Vladimir Sementsov-Ogievskiy wrote: > This patch is generated by cocci script: > > @@ > symbol bdrv_open_child, errp, local_err; > expression file; > @@ > > file = bdrv_open_child(..., > - &local_err > + errp > ); > - if (local_err) > + if (!file) > { > ... > - error_propagate(errp, local_err); > ... > } > > with command > > spatch --sp-file x.cocci --macro-file scripts/cocci-macro-file.h \ > --in-place --no-show-diff --max-width 80 --use-gitgrep block > > Signed-off-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com>
Reviewed-by: Alberto Garcia <be...@igalia.com> Berto