historical/m0-applesillicon.git/xnu-qemu-arm64-5.1.0/scripts/coccinelle/error_propagate_null.cocci

11 lines
180 B
Text
Raw Normal View History

2024-01-16 17:20:27 +00:00
// error_propagate() already ignores local_err==NULL, so there's
// no need to check it before calling.
@@
identifier L;
expression E;
@@
-if (L) {
error_propagate(E, L);
-}