[IPV4]: [1/4] signed vs unsigned cleanup in net/ipv4/raw.c
authorJesper Juhl <juhl-lkml@dif.dk>
Sun, 19 Jun 2005 05:59:45 +0000 (22:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jun 2005 05:59:45 +0000 (22:59 -0700)
commit5418c6926fcb0e5a324cd5bc1106fc0941db7aae
tree0d5a679faaac6e424a7df345d0f491267d6b7792
parent94df109a8c802263837baccc1a3eeab9ab9e88db
[IPV4]: [1/4] signed vs unsigned cleanup in net/ipv4/raw.c

This patch silences these two gcc -W warnings in net/ipv4/raw.c :

net/ipv4/raw.c:517: warning: signed and unsigned type in conditional expression
net/ipv4/raw.c:613: warning: signed and unsigned type in conditional expression

It doesn't change the behaviour of the code, simply writes the conditional
expression with plain 'if()' syntax instead of '? :' , but since this
breaks it into sepperate statements gcc no longer complains about having
both a signed and unsigned value in the same conditional expression.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/raw.c