Re: [PATCH rt-tests 6/9] cyclictest: drop impossible use_fifo conditional

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Mon, 31 Aug 2015, Josh Cartwright wrote:

> The fifothread is only created when use_fifo is set; having the thread
> itself perform a check is redundant and unnecessary.  Drop it.
> 
> Signed-off-by: Josh Cartwright <joshc@xxxxxx>
> ---
>  src/cyclictest/cyclictest.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
> index dc754fd..896cdd7 100644
> --- a/src/cyclictest/cyclictest.c
> +++ b/src/cyclictest/cyclictest.c
> @@ -1773,9 +1773,6 @@ static void *fifothread(void *param)
>  	FILE *fp;
>  	int i;
>  
> -	if (use_fifo == 0)
> -		return NULL;
> -
>  	unlink(fifopath);
>  	ret = mkfifo(fifopath, 0666);
>  	if (ret) {
> -- 
> 2.5.0
> 
> --
Signed-off-by: John Kacur <jkacur@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux