[LTP] [PATCH v3 10/12] getdtablesize01: Handle ENFILE errno

Punit Agrawal punit.agrawal@arm.com
Fri Dec 8 11:41:37 CET 2017


Cyril Hrubis <chrubis@suse.cz> writes:

> Hi!
>> -	for (loop = 1; loop <= max_val_opfiles; loop++) {
>> +	for (loop = 0; ; loop++) {
>
> Why not just for (;;) ?
>
> I do not see that we use the loop variable anywhere in the code.

You're right - the loop variable can be dropped entirely.


More information about the ltp mailing list