diff options
| author | 2015-06-20 18:59:01 +0200 | |
|---|---|---|
| committer | 2015-07-13 19:35:52 -0700 | |
| commit | c38ce3548e0c5df27b63f9b591f11a9c34416576 (patch) | |
| tree | f7d53f02b30fe43e39a60251e3eb576dcdd5a1ed /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | staging: lustre: fld: Use !x to check for kzalloc failure (diff) | |
staging: lustre: lclient: Use !x to check for kzalloc failure
!x is more normal for kzalloc failure in the kernel.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
expression x;
statement S1, S2;
@@
x = kzalloc(...);
if (
- x == NULL
+ !x
) S1 else S2
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
