diff options
| author | Benoit Taine <[email protected]> | 2014-05-22 16:32:30 +0200 |
|---|---|---|
| committer | J. Bruce Fields <[email protected]> | 2014-05-22 15:52:23 -0400 |
| commit | d40aa3372f90d478b6166df0321349b5aeb0aea8 (patch) | |
| tree | 850ddb4df00cc40eb34f0b2ff2dbfe77d62f774e /tools/perf/scripts/python/bin | |
| parent | f35ea0d4b66b789e0edcea634238e9aa31924516 (diff) | |
nfsd: Remove assignments inside conditions
Assignments should not happen inside an if conditional, but in the line
before. This issue was reported by checkpatch.
The semantic patch that makes this change is as follows
(http://coccinelle.lip6.fr/):
// <smpl>
@@
identifier i1;
expression e1;
statement S;
@@
-if(!(i1 = e1)) S
+i1 = e1;
+if(!i1)
+S
// </smpl>
It has been tested by compilation.
Signed-off-by: Benoit Taine <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions