X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fcaif%2Fcfveil.c;h=e04f7d964e83ea8d0c88308bb0fcd2e3dd9dfbd6;hb=d8d326dc7ae6bec2a999d674c5babb6bf490587a;hp=0fd827f494919caa44926264baa885ea409df776;hpb=b482cd2053e3b90a7b33a78c63cdb6badf2ec383;p=karo-tx-linux.git diff --git a/net/caif/cfveil.c b/net/caif/cfveil.c index 0fd827f49491..e04f7d964e83 100644 --- a/net/caif/cfveil.c +++ b/net/caif/cfveil.c @@ -84,7 +84,7 @@ static int cfvei_transmit(struct cflayer *layr, struct cfpkt *pkt) return ret; caif_assert(layr->dn != NULL); caif_assert(layr->dn->transmit != NULL); - if (!cfpkt_getlen(pkt) > CAIF_MAX_PAYLOAD_SIZE) { + if (cfpkt_getlen(pkt) > CAIF_MAX_PAYLOAD_SIZE) { pr_warning("CAIF: %s(): Packet too large - size=%d\n", __func__, cfpkt_getlen(pkt)); return -EOVERFLOW;