f-stack/dpdk/devtools/cocci/func_or_ret.cocci

13 lines
178 B
Plaintext
Raw Normal View History

2023-09-13 12:21:49 +00:00
@@
expression cond, ret;
@@
-RTE_FUNC_PTR_OR_ERR_RET(cond, ret);
+if (cond == NULL)
+ return ret;
@@
expression cond;
@@
-RTE_FUNC_PTR_OR_RET(cond);
+if (cond == NULL)
+ return;