mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
caif: precedence bug
Negate has precedence over comparison so the original assert only checked that "rfml->fragment_size" was larger than 1 or 0. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
03dc2f4c52
commit
b77026b391
@ -193,7 +193,7 @@ out:
|
||||
|
||||
static int cfrfml_transmit_segment(struct cfrfml *rfml, struct cfpkt *pkt)
|
||||
{
|
||||
caif_assert(!cfpkt_getlen(pkt) < rfml->fragment_size);
|
||||
caif_assert(cfpkt_getlen(pkt) >= rfml->fragment_size);
|
||||
|
||||
/* Add info for MUX-layer to route the packet out. */
|
||||
cfpkt_info(pkt)->channel_id = rfml->serv.layer.id;
|
||||
|
Loading…
Reference in New Issue
Block a user