lkml.org 
[lkml]   [2023]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v3] selftest/vm: add mremap expand merge offset test
From
> -	mremap_expand_merge(page_size);
> + maps_fp = fopen("/proc/self/maps", "r");
> + if (maps_fp == NULL) {
> + ksft_print_msg("Failed to read /proc/self/maps: %s\n", strerror(errno));
> + exit(KSFT_FAIL);
> + } else {

With the exit() in place, the else branch is implicit and the else can
be dropped.

> + mremap_expand_merge(maps_fp, page_size);
> + mremap_expand_merge_offset(maps_fp, page_size);
> +
> + fclose(maps_fp);
> + }
>
> if (run_perf_tests) {
> ksft_print_msg("\n%s\n",

Thanks!

Acked-by: David Hildenbrand <david@redhat.com>

--
Thanks,

David / dhildenb

\
 
 \ /
  Last update: 2023-03-26 23:25    [W:0.029 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site