[LTP] [PATCH] syscalls/umount2_02: remove useless TST_ERR assignment

Petr Vorel pvorel@suse.cz
Fri Mar 25 11:15:38 CET 2022


Hi Dai,

> Signed-off-by: Dai Shili <daisl.fnst@fujitsu.com>
> ---
>  testcases/kernel/syscalls/umount2/umount2_02.c | 1 -
>  1 file changed, 1 deletion(-)

> diff --git a/testcases/kernel/syscalls/umount2/umount2_02.c b/testcases/kernel/syscalls/umount2/umount2_02.c
> index 4c3b30e..d1aed11 100644
> --- a/testcases/kernel/syscalls/umount2/umount2_02.c
> +++ b/testcases/kernel/syscalls/umount2/umount2_02.c
> @@ -69,7 +69,6 @@ static int umount2_retry(const char *target, int flags)
>  	tst_res(TWARN, "Failed to umount('%s', %i) after 50 retries",
>  		target, flags);

> -	TST_ERR = EBUSY;

Not sure if the for loop in umount2_retry() could overwrite the original errno.

Kind regards,
Petr

>  	return -1;
>  }


More information about the ltp mailing list