diff options
author | Bill Nottingham <notting@redhat.com> | 2007-05-31 21:33:35 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-06-03 18:08:47 -0700 |
commit | 75202e76893c11ce7f8bcc9a07f994d71e3d5113 (patch) | |
tree | 71d9e0aaabb6b3904c477f8ee253484245e38d49 /net/sched | |
parent | 60468d5b5b6931b4d4d704e26b5f17a6e476e6f8 (diff) | |
download | linux-75202e76893c11ce7f8bcc9a07f994d71e3d5113.tar.bz2 |
[NET]: Fix comparisons of unsigned < 0.
Recent gcc versions emit warnings when unsigned variables are
compared < 0 or >= 0.
Signed-off-by: Bill Nottingham <notting@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/act_pedit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sched/act_pedit.c b/net/sched/act_pedit.c index 45b3cda86a21..6f8684b5617e 100644 --- a/net/sched/act_pedit.c +++ b/net/sched/act_pedit.c @@ -164,8 +164,7 @@ static int tcf_pedit(struct sk_buff *skb, struct tc_action *a, printk("offset must be on 32 bit boundaries\n"); goto bad; } - if (skb->len < 0 || - (offset > 0 && offset > skb->len)) { + if (offset > 0 && offset > skb->len) { printk("offset %d cant exceed pkt length %d\n", offset, skb->len); goto bad; |