isc_event_allocate() can't fail now, add spatch to remove the checks

This commit is contained in:
Ondřej Surý
2019-08-29 09:35:37 +02:00
committed by Mark Andrews
parent 767de9fe30
commit 2d12def6ee

View File

@@ -0,0 +1,33 @@
@@
statement S;
expression V;
@@
V = isc_event_allocate(...);
- if (V == NULL) S
@@
type T;
statement S;
expression V;
@@
V = (T *)isc_event_allocate(...);
- if (V == NULL) S
@@
statement S;
expression V;
@@
if (V == NULL) V = isc_event_allocate(...);
- if (V == NULL) S
@@
statement S1, S2;
expression V;
@@
V = isc_event_allocate(...);
- if (V == NULL) S1 else { S2 }
+ S2