diff options
author | Julia Lawall <julia@diku.dk> | 2010-01-21 00:16:41 +0100 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-01-25 20:33:35 +0100 |
commit | ec7384ec23dc5a9ea8733e90438e16b6066bfe1b (patch) | |
tree | 87fb33ca9a3a7fa29f22694e0946d4af344b252e /fs/ceph/ceph_fs.h | |
parent | ceph: display pgid in debugfs osd request dump (diff) | |
download | linux-ec7384ec23dc5a9ea8733e90438e16b6066bfe1b.tar.xz 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