Skip to content

Commit

Permalink
caif: precedence bug
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
error27 authored and davem330 committed Jul 22, 2010
1 parent 03dc2f4 commit b77026b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/caif/cfrfml.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ static int cfrfml_receive(struct cflayer *layr, struct cfpkt *pkt)

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;
Expand Down

0 comments on commit b77026b

Please sign in to comment.