Commit 32cf666
mm/memory_hotplug: cleanup return value handing in do_migrate_range()
Return value mechanism of do_migrate_range() is not very simple, while no
caller of the function checks the return value. Make the function return
nothing to be more simple, and cleanup related unnecessary code.
Link: https://lkml.kernel.org/r/20230216170703.64574-1-sj@kernel.org
Suggested-by: David Hildenbrand <david@redhat.com>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>1 parent 7a079ba commit 32cf666
1 file changed
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1620 | 1620 | | |
1621 | 1621 | | |
1622 | 1622 | | |
1623 | | - | |
1624 | | - | |
| 1623 | + | |
1625 | 1624 | | |
1626 | 1625 | | |
1627 | 1626 | | |
1628 | | - | |
1629 | 1627 | | |
1630 | 1628 | | |
1631 | 1629 | | |
| |||
1679 | 1677 | | |
1680 | 1678 | | |
1681 | 1679 | | |
1682 | | - | |
1683 | 1680 | | |
1684 | 1681 | | |
1685 | 1682 | | |
| |||
1693 | 1690 | | |
1694 | 1691 | | |
1695 | 1692 | | |
| 1693 | + | |
1696 | 1694 | | |
1697 | 1695 | | |
1698 | 1696 | | |
| |||
1721 | 1719 | | |
1722 | 1720 | | |
1723 | 1721 | | |
1724 | | - | |
1725 | | - | |
1726 | 1722 | | |
1727 | 1723 | | |
1728 | 1724 | | |
| |||
0 commit comments