提交 df7641af 编写于 作者: T Thiago Farina 提交者: David S. Miller

trivial: remove duplicated MIN macro from tehuti.

Since the kernel api already has the macro "min",
just use it instead of declaring another one.
Signed-off-by: NThiago Farina <tfransosi@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0d37f36f
...@@ -1878,7 +1878,7 @@ static void bdx_tx_push_desc_safe(struct bdx_priv *priv, void *data, int size) ...@@ -1878,7 +1878,7 @@ static void bdx_tx_push_desc_safe(struct bdx_priv *priv, void *data, int size)
udelay(50); /* give hw a chance to clean fifo */ udelay(50); /* give hw a chance to clean fifo */
continue; continue;
} }
avail = MIN(avail, size); avail = min(avail, size);
DBG("about to push %d bytes starting %p size %d\n", avail, DBG("about to push %d bytes starting %p size %d\n", avail,
data, size); data, size);
bdx_tx_push_desc(priv, data, avail); bdx_tx_push_desc(priv, data, avail);
......
...@@ -76,8 +76,6 @@ ...@@ -76,8 +76,6 @@
#define FIFO_SIZE 4096 #define FIFO_SIZE 4096
#define FIFO_EXTRA_SPACE 1024 #define FIFO_EXTRA_SPACE 1024
#define MIN(x, y) ((x) < (y) ? (x) : (y))
#if BITS_PER_LONG == 64 #if BITS_PER_LONG == 64
# define H32_64(x) (u32) ((u64)(x) >> 32) # define H32_64(x) (u32) ((u64)(x) >> 32)
# define L32_64(x) (u32) ((u64)(x) & 0xffffffff) # define L32_64(x) (u32) ((u64)(x) & 0xffffffff)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册