]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV4]: [2/4] signed vs unsigned cleanup in net/ipv4/raw.c
authorJesper Juhl <juhl-lkml@dif.dk>
Sun, 19 Jun 2005 06:00:00 +0000 (23:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jun 2005 06:00:00 +0000 (23:00 -0700)
commitb791a22b462e7bb53cfec413eb99cb8427a7d8b4
tree1274e11e3e617936a1b5b6bda9e0978d678687fa
parent8c27ea19feb4266f64e1b3d0518832a28a19ca1e
[IPV4]: [2/4] signed vs unsigned cleanup in net/ipv4/raw.c

This patch gets rid of the following gcc -W warning in net/ipv4/raw.c :

net/ipv4/raw.c:387: warning: comparison of unsigned expression < 0 is always false

Since 'len' is of type size_t it is unsigned and can thus never be <0, and
since this is obvious from the function declaration just a few lines above
I think it's ok to remove the pointless check for len<0.

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/raw.c