X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=net%2Fipv4%2Fmultipath_wrandom.c;h=d34a9fa608e0b88dec20adaa567100a5b63c4ee0;hb=45ed344cc7b6456856b4ae5e3d81cdb18b98f8ad;hp=bd7d75b6abe0a6a7e1ed63d78b5d18becf3eb961;hpb=0107b3cf3225aed6ddde4fa8dbcd4ed643b34f4d;p=powerpc.git diff --git a/net/ipv4/multipath_wrandom.c b/net/ipv4/multipath_wrandom.c index bd7d75b6ab..d34a9fa608 100644 --- a/net/ipv4/multipath_wrandom.c +++ b/net/ipv4/multipath_wrandom.c @@ -207,16 +207,12 @@ static void wrandom_select_route(const struct flowi *flp, decision = mpc->rt; last_power = mpc->power; - if (last_mpc) - kfree(last_mpc); - + kfree(last_mpc); last_mpc = mpc; } - if (last_mpc) { - /* concurrent __multipath_flush may lead to !last_mpc */ - kfree(last_mpc); - } + /* concurrent __multipath_flush may lead to !last_mpc */ + kfree(last_mpc); decision->u.dst.__use++; *rp = decision;