]> git.hungrycats.org Git - linux/commitdiff
[ATM]: [nicstar] use kernel min/max (by Randy.Dunlap <rddunlap@osdl.org>)
authorChas Williams <chas@cmf.nrl.navy.mil>
Thu, 25 Mar 2004 07:06:05 +0000 (23:06 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 25 Mar 2004 07:06:05 +0000 (23:06 -0800)
drivers/atm/nicstar.c

index 59028ad6c31791471a00a9ee753dda10d1dcaf34..a2e465d9be60193271df25066162bd327f6b826c 100644 (file)
 
 /* Macros *********************************************************************/
 
-#define MAX(a,b) ((a) > (b) ? (a) : (b))
-#define MIN(a,b) ((a) < (b) ? (a) : (b))
-
 #define CMD_BUSY(card) (readl((card)->membase + STAT) & NS_STAT_CMDBZ)
 
 #define NS_DELAY mdelay(1)
@@ -2483,7 +2480,7 @@ static void dequeue_rx(ns_dev *card, ns_rsqe *rsqe)
             for (j = 1; j < NS_SKB(iovb)->iovcnt; j++)
             {
                lb = (struct sk_buff *) iov->iov_base;
-               tocopy = MIN(remaining, iov->iov_len);
+               tocopy = min_t(int, remaining, iov->iov_len);
                memcpy(hb->tail, lb->data, tocopy);
                skb_put(hb, tocopy);
                iov++;