Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c61f26fa authored by Richard Knutsson's avatar Richard Knutsson Committed by Linus Torvalds
Browse files

pcmcia/axnet_cs: make use of 'max()' instead of handcrafted one



Use 'max(x,y)' instead of 'x < y ? y : x'.

Signed-off-by: default avatarRichard Knutsson <ricknu-0@student.ltu.se>
Acked-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6b2e4386
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1087,7 +1087,7 @@ static int ei_start_xmit(struct sk_buff *skb, struct net_device *dev)
	
	ei_local->irqlock = 1;

	send_length = ETH_ZLEN < length ? length : ETH_ZLEN;
	send_length = max(length, ETH_ZLEN);

	/*
	 * We have two Tx slots available for use. Find the first free