Re: [PATCH] Change judgment len position

2018-10-24 Thread Eric Dumazet
On Wed, Oct 24, 2018 at 9:54 AM Joe Perches wrote: > I think if the point is to test for negative numbers, > it's clearer to do that before using min_t.and it's > probably clearer not to use min_t at all. > ... > > if (len > sizeof(int)) > len = sizeof(int); It is a

Re: [PATCH] Change judgment len position

2018-10-24 Thread Eric Dumazet
On Wed, Oct 24, 2018 at 9:54 AM Joe Perches wrote: > I think if the point is to test for negative numbers, > it's clearer to do that before using min_t.and it's > probably clearer not to use min_t at all. > ... > > if (len > sizeof(int)) > len = sizeof(int); It is a