From: Richard Knutsson Date: Tue, 5 Feb 2008 06:27:41 +0000 (-0800) Subject: pcmcia/axnet_cs: make use of 'max()' instead of handcrafted one X-Git-Tag: accepted/tizen/common/20141203.182822~25360 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c61f26fa609f11a471a68668b838b7366b2b75e0;p=platform%2Fkernel%2Flinux-arm64.git pcmcia/axnet_cs: make use of 'max()' instead of handcrafted one Use 'max(x,y)' instead of 'x < y ? y : x'. Signed-off-by: Richard Knutsson Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/net/pcmcia/axnet_cs.c b/drivers/net/pcmcia/axnet_cs.c index 9d4d706..e8a63e4 100644 --- a/drivers/net/pcmcia/axnet_cs.c +++ b/drivers/net/pcmcia/axnet_cs.c @@ -1087,8 +1087,8 @@ 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 * slot, and then perform some sanity checks. With two Tx bufs,