The whole hlist will be moved, so not need to call hlist_del before add the hlist_node to other hlist_head.
Unified · Split
| @@ -713,8 +713,6 @@ static void fib_info_hash_move(struct hlist_head *new_info_hash, · 712 unmodified lines | ||
| 713 | 713 | struct hlist_head *dest; |
| 714 | 714 | unsigned int new_hash; |
| 715 | 715 | |
| 716 | − hlist_del(&fi->fib_hash); | |
| 717 | − | |
| 718 | 716 | new_hash = fib_info_hashfn(fi); |
| 719 | 717 | dest = &new_info_hash[new_hash]; |
| 720 | 718 | hlist_add_head(&fi->fib_hash, dest); |
| @@ -731,8 +729,6 @@ static void fib_info_hash_move(struct hlist_head *new_info_hash, · 10 unmodified lines | ||
| 731 | 729 | struct hlist_head *ldest; |
| 732 | 730 | unsigned int new_hash; |
| 733 | 731 | |
| 734 | − hlist_del(&fi->fib_lhash); | |
| 735 | − | |
| 736 | 732 | new_hash = fib_laddr_hashfn(fi->fib_prefsrc); |
| 737 | 733 | ldest = &new_laddrhash[new_hash]; |
| 738 | 734 | hlist_add_head(&fi->fib_lhash, ldest); |