diff options
| author | Joshua Hahn <joshua.hahnjy@gmail.com> | 2026-01-16 22:27:15 +0300 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-02-01 01:22:38 +0300 |
| commit | a1c655f554441561bf4b256dc75d977a1433753c (patch) | |
| tree | 1d699f99ae98fb19b229cf9ff2f133f2f940f82f /include/memory | |
| parent | 94350fe6cad77b46c3dcb8c96543bef7647efbc0 (diff) | |
| download | linux-a1c655f554441561bf4b256dc75d977a1433753c.tar.xz | |
mm/hugetlb: remove unnecessary if condition
if (map_chg) is always true, since it is nested in another if statement
which checks for map_chg == MAP_CHG_NEEDED, which is equal to 1.
if (unlikely(map_chg == MAP_CHG_NEEDED && retval == 0)) {
...
if (map_chg) {
...
}
}
Remove the check, un-indent, and collapse the function call for
readability.
No functional change intended.
Link: https://lkml.kernel.org/r/20260116192717.1600049-1-joshua.hahnjy@gmail.com
Signed-off-by: Joshua Hahn <joshua.hahnjy@gmail.com>
Acked-by: David Hildenbrand (Red Hat) <david@kernel.org>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/memory')
0 files changed, 0 insertions, 0 deletions
