[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20091024.061939.101469808.davem@davemloft.net>
Date: Sat, 24 Oct 2009 06:19:39 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: roel.kluin@...il.com, chas@....nrl.navy.mil,
netdev@...r.kernel.org, akpm@...ux-foundation.org
Subject: Re: [PATCH] atm: Cleanup redundant tests on unsigned
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Fri, 23 Oct 2009 18:08:30 +0200
> Roel Kluin a écrit :
>> The variables are unsigned so the `< 0' test always fails, the
>> other part of the test catches wrapped values.
>>
>> Signed-off-by: Roel Kluin <roel.kluin@...il.com>
>> ---
>
> I believe such patches were posted in the past.
>
> General consensus is that compiler is able to do this optimization for us,
> and reader doesnt have to ask to himself : "Is the test safe enough ?"
Conversely, the reader can say "Wow this can be negative? There's
tests missing elsewhere! ... oh, nevermind it's unsigned"
That really wastes people's time too.
I suspect I'll apply these patches. :-)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists