diff options
author | Julia Lawall <julia@diku.dk> | 2010-01-20 18:16:41 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-01-25 14:33:35 -0500 |
commit | ec7384ec23dc5a9ea8733e90438e16b6066bfe1b (patch) | |
tree | 87fb33ca9a3a7fa29f22694e0946d4af344b252e /net | |
parent | 7740a42f816790583bd8a9079337772d511af3a3 (diff) |
ceph: remove duplicate variable initialization
The variable client is initialized twice to the same (side effect-free)
expression. Drop one initialization.
A simplified version of the semantic match that finds this problem is:
(http://coccinelle.lip6.fr/)
// <smpl>
@forall@
idexpression *x;
identifier f!=ERR_PTR;
@@
x = f(...)
... when != x
(
x = f(...,<+...x...+>,...)
|
* x = f(...)
)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions