* [PATCH][net-next] ipv4: remove the unnecessary codes in fib_info_hash_move
@ 2015-04-30 9:25 roy.qing.li
2015-05-03 2:18 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: roy.qing.li @ 2015-04-30 9:25 UTC (permalink / raw)
To: netdev
From: Li RongQing <roy.qing.li@gmail.com>
The whole hlist will be moved, so not need to call hlist_del before
add the hlist_node to other hlist_head.
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
---
net/ipv4/fib_semantics.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c
index 8d695b6..28ec3c1 100644
--- a/net/ipv4/fib_semantics.c
+++ b/net/ipv4/fib_semantics.c
@@ -713,8 +713,6 @@ static void fib_info_hash_move(struct hlist_head *new_info_hash,
struct hlist_head *dest;
unsigned int new_hash;
- hlist_del(&fi->fib_hash);
-
new_hash = fib_info_hashfn(fi);
dest = &new_info_hash[new_hash];
hlist_add_head(&fi->fib_hash, dest);
@@ -731,8 +729,6 @@ static void fib_info_hash_move(struct hlist_head *new_info_hash,
struct hlist_head *ldest;
unsigned int new_hash;
- hlist_del(&fi->fib_lhash);
-
new_hash = fib_laddr_hashfn(fi->fib_prefsrc);
ldest = &new_laddrhash[new_hash];
hlist_add_head(&fi->fib_lhash, ldest);
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH][net-next] ipv4: remove the unnecessary codes in fib_info_hash_move
2015-04-30 9:25 [PATCH][net-next] ipv4: remove the unnecessary codes in fib_info_hash_move roy.qing.li
@ 2015-05-03 2:18 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-05-03 2:18 UTC (permalink / raw)
To: roy.qing.li; +Cc: netdev
From: roy.qing.li@gmail.com
Date: Thu, 30 Apr 2015 17:25:12 +0800
> From: Li RongQing <roy.qing.li@gmail.com>
>
> The whole hlist will be moved, so not need to call hlist_del before
> add the hlist_node to other hlist_head.
>
> Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-03 2:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-30 9:25 [PATCH][net-next] ipv4: remove the unnecessary codes in fib_info_hash_move roy.qing.li
2015-05-03 2:18 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.