diff options
| author | 2015-06-20 18:59:07 +0200 | |
|---|---|---|
| committer | 2015-07-13 19:35:53 -0700 | |
| commit | 485640b536adc451330815a75f433be15c655243 (patch) | |
| tree | 58f2fa9afada2c93505e97cab0af0ee6d4bb8d7a /tools/perf/scripts/python/netdev-times.py | |
| parent | staging: lustre: mgc: Use !x to check for kzalloc failure (diff) | |
staging: lustre: obdclass: 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/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
