[PATCHv2] tests: jittertest: fix set of compiler warnings

Artem Bityutskiy dedekind1 at gmail.com
Tue Apr 5 10:39:26 EDT 2011


On Tue, 2011-04-05 at 17:32 +0300, Andy Shevchenko wrote:
> -            read(Fd2, tmpBuf, 1);
> +	    cntr = read(Fd2, tmpBuf, 1);
> +	    if (cntr < 0)
> +		perror("read error");

I've pushed this but only then noticed that you should have checked
(cntr != 1) instead. But this is not a big deal anyway.
-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list