[LTP] [PATCH 1/2] lib/tst_device: Remove unused count_match_len()
Petr Vorel
pvorel@suse.cz
Thu Nov 10 18:52:35 CET 2022
Fixes: e1b1ae66b ("tst_find_backing_dev: Get dev name from /sys/dev/block/*/uevent")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Hi,
obviously correct, but not merging it without ack there are changes and
function is actually needed.
Kind regards,
Petr
lib/tst_device.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/lib/tst_device.c b/lib/tst_device.c
index db5c2ab8f..48d7e3ab6 100644
--- a/lib/tst_device.c
+++ b/lib/tst_device.c
@@ -510,16 +510,6 @@ unsigned long tst_dev_bytes_written(const char *dev)
return dev_bytes_written;
}
-static int count_match_len(const char *first, const char *second)
-{
- int len = 0;
-
- while (*first && *first++ == *second++)
- len++;
-
- return len;
-}
-
__attribute__((nonnull))
void tst_find_backing_dev(const char *path, char *dev)
{
--
2.38.0
More information about the ltp
mailing list