aboutsummaryrefslogtreecommitdiff
path: root/scripts/coccinelle/error_propagate_null.cocci
blob: c23638007ab3aa168063c35ead29f09e3f2f7bd6 (plain)
1
2
3
4
5
6
7
8
9
10
// 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);
-}