diff options
author | Julia Lawall <julia@diku.dk> | 2010-01-20 15:16:41 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-01-25 11:33:35 -0800 |
commit | ec7384ec23dc5a9ea8733e90438e16b6066bfe1b (patch) | |
tree | 87fb33ca9a3a7fa29f22694e0946d4af344b252e /fs/ceph/ceph_fs.h | |
parent | 7740a42f816790583bd8a9079337772d511af3a3 (diff) | |
download | linux-ec7384ec23dc5a9ea8733e90438e16b6066bfe1b.tar.gz linux-ec7384ec23dc5a9ea8733e90438e16b6066bfe1b.tar.bz2 linux-ec7384ec23dc5a9ea8733e90438e16b6066bfe1b.zip |
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 'fs/ceph/ceph_fs.h')
0 files changed, 0 insertions, 0 deletions