xref: /openbmc/qemu/scripts/coccinelle/error_propagate_null.cocci (revision ac06724a715864942e2b5e28f92d5d5421f0a0b0)
1// error_propagate() already ignores local_err==NULL, so there's
2// no need to check it before calling.
3
4@@
5identifier L;
6expression E;
7@@
8-if (L) {
9     error_propagate(E, L);
10-}
11