[LTP] [PATCH v2 3/3] libswap: Remove function description

Petr Vorel pvorel@suse.cz
Tue May 21 09:49:55 CEST 2024


We have docs in libswap.h, better not duplicate the description.

Fixes: 703406ba4 ("doc: libltpswap: Add kerneldoc")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
New in v2

 libs/libltpswap/libswap.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/libs/libltpswap/libswap.c b/libs/libltpswap/libswap.c
index e587f315e..ce419a76e 100644
--- a/libs/libltpswap/libswap.c
+++ b/libs/libltpswap/libswap.c
@@ -241,9 +241,6 @@ bool is_swap_supported(const char *filename)
 	return true;
 }
 
-/*
- * Get kernel constant MAX_SWAPFILES value.
- */
 int tst_max_swapfiles(void)
 {
 	unsigned int swp_migration_num = 0, swp_hwpoison_num = 0,
@@ -296,9 +293,6 @@ int tst_max_swapfiles(void)
 		- swp_device_num - swp_pte_marker_num;
 }
 
-/*
- * Get the used swapfiles number.
- */
 int tst_count_swaps(void)
 {
 	FILE *fp;
-- 
2.43.0



More information about the ltp mailing list