diff options
author | roel kluin <roel.kluin@gmail.com> | 2009-10-23 07:21:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-29 09:39:53 +0100 |
commit | 091bb8ab51c668635d1a75359019005921676881 (patch) | |
tree | 6cecf1abd03209db800880cb090e24cdf58146e4 /net/x25/x25_in.c | |
parent | gigaset: convert strcmp chain to table lookup (diff) | |
download | linux-091bb8ab51c668635d1a75359019005921676881.tar.xz linux-091bb8ab51c668635d1a75359019005921676881.zip |
net: Cleanup redundant tests on unsigned
If there is data, the unsigned skb->len is greater than 0.
rt.sigdigits is unsigned as well, so the test `>= 0' is
always true, the other part of the test catches wrapped
values.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/x25/x25_in.c')
-rw-r--r-- | net/x25/x25_in.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/x25/x25_in.c b/net/x25/x25_in.c index 7d7c3abf38b5..96d922783547 100644 --- a/net/x25/x25_in.c +++ b/net/x25/x25_in.c @@ -114,7 +114,7 @@ static int x25_state1_machine(struct sock *sk, struct sk_buff *skb, int frametyp /* * Copy any Call User Data. */ - if (skb->len >= 0) { + if (skb->len > 0) { skb_copy_from_linear_data(skb, x25->calluserdata.cuddata, skb->len); |