ceph: remove duplicate variable initialization
authorJulia Lawall <julia@diku.dk>
Wed, 20 Jan 2010 23:16:41 +0000 (15:16 -0800)
committerSage Weil <sage@newdream.net>
Mon, 25 Jan 2010 19:33:35 +0000 (11:33 -0800)
commitec7384ec23dc5a9ea8733e90438e16b6066bfe1b
tree87fb33ca9a3a7fa29f22694e0946d4af344b252e
parent7740a42f816790583bd8a9079337772d511af3a3
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>
fs/ceph/addr.c