|
7 | 7 | // URL: http://coccinelle.lip6.fr/
|
8 | 8 | // Options: --no-includes --include-headers
|
9 | 9 | //
|
10 |
| -// Keywords: ERR_PTR, PTR_ERR, PTR_RET, PTR_ERR_OR_ZERO |
| 10 | +// Keywords: ERR_PTR, PTR_ERR, PTR_ERR_OR_ZERO |
11 | 11 | // Version min: 2.6.39
|
12 | 12 | //
|
13 | 13 |
|
@@ -62,35 +62,35 @@ position p3;
|
62 | 62 | p << r1.p1;
|
63 | 63 | @@
|
64 | 64 |
|
65 |
| -coccilib.org.print_todo(p[0], "WARNING: PTR_RET can be used") |
| 65 | +coccilib.org.print_todo(p[0], "WARNING: PTR_ERR_OR_ZERO can be used") |
66 | 66 |
|
67 | 67 |
|
68 | 68 | @script:python depends on org@
|
69 | 69 | p << r2.p2;
|
70 | 70 | @@
|
71 | 71 |
|
72 |
| -coccilib.org.print_todo(p[0], "WARNING: PTR_RET can be used") |
| 72 | +coccilib.org.print_todo(p[0], "WARNING: PTR_ERR_OR_ZERO can be used") |
73 | 73 |
|
74 | 74 | @script:python depends on org@
|
75 | 75 | p << r3.p3;
|
76 | 76 | @@
|
77 | 77 |
|
78 |
| -coccilib.org.print_todo(p[0], "WARNING: PTR_RET can be used") |
| 78 | +coccilib.org.print_todo(p[0], "WARNING: PTR_ERR_OR_ZERO can be used") |
79 | 79 |
|
80 | 80 | @script:python depends on report@
|
81 | 81 | p << r1.p1;
|
82 | 82 | @@
|
83 | 83 |
|
84 |
| -coccilib.report.print_report(p[0], "WARNING: PTR_RET can be used") |
| 84 | +coccilib.report.print_report(p[0], "WARNING: PTR_ERR_OR_ZERO can be used") |
85 | 85 |
|
86 | 86 | @script:python depends on report@
|
87 | 87 | p << r2.p2;
|
88 | 88 | @@
|
89 | 89 |
|
90 |
| -coccilib.report.print_report(p[0], "WARNING: PTR_RET can be used") |
| 90 | +coccilib.report.print_report(p[0], "WARNING: PTR_ERR_OR_ZERO can be used") |
91 | 91 |
|
92 | 92 | @script:python depends on report@
|
93 | 93 | p << r3.p3;
|
94 | 94 | @@
|
95 | 95 |
|
96 |
| -coccilib.report.print_report(p[0], "WARNING: PTR_RET can be used") |
| 96 | +coccilib.report.print_report(p[0], "WARNING: PTR_ERR_OR_ZERO can be used") |
0 commit comments