mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Acked-by: Alan Cox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
6b2e43861b
commit
c61f26fa60
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue