diff options
author | 2025-01-08 09:52:23 +0800 | |
---|---|---|
committer | 2025-03-16 22:05:56 -0700 | |
commit | 100bc3b877fca43e46485883eaf179aec7a11c86 (patch) | |
tree | 6aa28a30793b98ee9365bafc3974fc5d9490d600 /mm/memory.c | |
parent | selftests/mm: test splitting file-backed THP to any lower order (diff) | |
download | wireguard-linux-100bc3b877fca43e46485883eaf179aec7a11c86.tar.xz wireguard-linux-100bc3b877fca43e46485883eaf179aec7a11c86.zip |
drivers/base/memory: simplify outputting of valid_zones_show()
No need to specify position at the first writing to the buf because the
@len is always 0 at this time. Use sysfs_emit() instead to simplify it.
Also avoid setting/checking default_zone with a conditional operator.
Link: https://lkml.kernel.org/r/20250108015223.1522887-1-ruansy.fnst@fujitsu.com
Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions