[LTP] [PATCH 1/2] lib/tst_device: Remove unused count_match_len()

Richard Palethorpe rpalethorpe@suse.de
Mon Nov 14 11:23:41 CET 2022


Hello,

Petr Vorel <pvorel@suse.cz> writes:

> Fixes: e1b1ae66b ("tst_find_backing_dev: Get dev name from /sys/dev/block/*/uevent")
>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>

Yup, my mistake.

Acked-by: Richard Palethorpe <rpalethorpe@suse.com>


> ---
> 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)
>  {


-- 
Thank you,
Richard.


More information about the ltp mailing list