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:
37e3be9
)
staging: lustre: remove initialization of static ints
author
Supriya Karanth
<iskaranth@gmail.com>
Tue, 3 Mar 2015 14:48:21 +0000
(23:48 +0900)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 17:54:33 +0000
(09:54 -0800)
static ints are initialized to 0 by the compiler.
Explicit initialization is not necessary.
Found by checkpatch.pl - ERROR: do not initialise statics to 0 or NULL
changes made using coccinelle script:
@@
type T;
identifier var;
@@
-static T var = 0;
+static T var;
Signed-off-by: Supriya Karanth <iskaranth@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
No differences found