[PATCH v2] mm/mmap.c: Remove some redundancy in arch_get_unmapped_area_topdown()

2019-01-26 Thread Yang Fan
other no-pointer parameters in function arch_get_unmapped_area_topdown(). Reviewed-by: Mike Rapoport Signed-off-by: Yang Fan --- Changes in v2: - Merge the two patches into one. mm/mmap.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index f90

[PATCH 2/2] mm/mmap.c: Remove redundant const qualifier of the no-pointer parameters

2019-01-20 Thread Yang Fan
In according with other functions, remove the const qualifier of the no-pointer parameters in function arch_get_unmapped_area_topdown(). Signed-off-by: Yang Fan --- mm/mmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index f2d163ac827a

[PATCH 1/2] mm/mmap.c: Remove redundant variable 'addr' in arch_get_unmapped_area_topdown()

2019-01-20 Thread Yang Fan
The variable 'addr' is redundant in arch_get_unmapped_area_topdown(), just use parameter 'addr0' directly. Then remove the const qualifier of the parameter, and change its name to 'addr'. Signed-off-by: Yang Fan --- mm/mmap.c | 3 +-- 1 file changed, 1 insertion(

[PATCH 0/2] mm/mmap.c: Remove some redundancy in arch_get_unmapped_area_topdown()

2019-01-20 Thread Yang Fan
This patchset remove some redundancy in function arch_get_unmapped_area_topdown(). [PATCH 1/2] mm/mmap.c: Remove redundant variable 'addr' in arch_get_unmapped_area_topdown() [PATCH 2/2] mm/mmap.c: Remove redundant const qualifier of the no-pointer parameters Yang Fan (2): mm/mmap

[PATCH v2] platform/x86: ideapad-laptop: Fix no_hw_rfkill_list for Lenovo RESCUER R720-15IKBN

2019-01-19 Thread Yang Fan
es in no_hw_rfkill_list, use DMI_PRODUCT_VERSION instead of DMI_BOARD_NAME. Fixes: ae7c8cba3221 ("platform/x86: ideapad-laptop: add lenovo RESCUER R720-15IKBN to no_hw_rfkill_list") Signed-off-by: Yang Fan --- drivers/platform/x86/ideapad-laptop.c | 2 +- 1 file changed, 1 insertion(+)