diff options
author | Dan Carpenter <error27@gmail.com> | 2010-06-07 06:51:58 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-10 01:18:53 +0200 |
commit | aea34e7ae7a40bc72f9f11b5658160dfb4b90c48 (patch) | |
tree | 12bba1eacc4d0359c4d0b394368c2f439bcb1042 /net/caif/cfrfml.c | |
parent | phylib: Add support for the LXT973 phy. (diff) | |
download | linux-aea34e7ae7a40bc72f9f11b5658160dfb4b90c48.tar.xz linux-aea34e7ae7a40bc72f9f11b5658160dfb4b90c48.zip |
caif: fix a couple range checks
The extra ! character means that these conditions are always false.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Sjur Braendeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif/cfrfml.c')
-rw-r--r-- | net/caif/cfrfml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/caif/cfrfml.c b/net/caif/cfrfml.c index cd2830fec935..fd27b172fb5d 100644 --- a/net/caif/cfrfml.c +++ b/net/caif/cfrfml.c @@ -83,7 +83,7 @@ static int cfrfml_transmit(struct cflayer *layr, struct cfpkt *pkt) if (!cfsrvl_ready(service, &ret)) return ret; - if (!cfpkt_getlen(pkt) > CAIF_MAX_PAYLOAD_SIZE) { + if (cfpkt_getlen(pkt) > CAIF_MAX_PAYLOAD_SIZE) { pr_err("CAIF: %s():Packet too large - size=%d\n", __func__, cfpkt_getlen(pkt)); return -EOVERFLOW; |