[IPV4]: no need pass pointer to a default into fib_detect_death
ipv4: no need pass pointer to a default into fib_detect_death Signed-off-by: Denis V. Lunev <den@openvz.org> Acked-by: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
7e5449c215
commit
c17860a039
@@ -314,7 +314,7 @@ fn_hash_select_default(struct fib_table *tb, const struct flowi *flp, struct fib
|
||||
if (next_fi != res->fi)
|
||||
break;
|
||||
} else if (!fib_detect_death(fi, order, &last_resort,
|
||||
&last_idx, &fn_hash_last_dflt)) {
|
||||
&last_idx, fn_hash_last_dflt)) {
|
||||
if (res->fi)
|
||||
fib_info_put(res->fi);
|
||||
res->fi = fi;
|
||||
@@ -332,7 +332,7 @@ fn_hash_select_default(struct fib_table *tb, const struct flowi *flp, struct fib
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!fib_detect_death(fi, order, &last_resort, &last_idx, &fn_hash_last_dflt)) {
|
||||
if (!fib_detect_death(fi, order, &last_resort, &last_idx, fn_hash_last_dflt)) {
|
||||
if (res->fi)
|
||||
fib_info_put(res->fi);
|
||||
res->fi = fi;
|
||||
|
Reference in New Issue
Block a user