git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb144d0
)
staging: lustre: mgc: Use !x to check for kzalloc failure
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Sat, 20 Jun 2015 16:59:06 +0000
(18:59 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 14 Jul 2015 02:35:53 +0000
(19:35 -0700)
!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>
No differences found