提交 2501f843 编写于 作者: R Richard Knutsson 提交者: Jeff Garzik

8139cp: Convert to generic boolean

Signed-off-by: NRichard Knutsson <ricknu-0@student.ltu.se>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 4117b5be
...@@ -107,11 +107,6 @@ MODULE_PARM_DESC (multicast_filter_limit, "8139cp: maximum number of filtered mu ...@@ -107,11 +107,6 @@ MODULE_PARM_DESC (multicast_filter_limit, "8139cp: maximum number of filtered mu
#define PFX DRV_NAME ": " #define PFX DRV_NAME ": "
#ifndef TRUE
#define FALSE 0
#define TRUE (!FALSE)
#endif
#define CP_DEF_MSG_ENABLE (NETIF_MSG_DRV | \ #define CP_DEF_MSG_ENABLE (NETIF_MSG_DRV | \
NETIF_MSG_PROBE | \ NETIF_MSG_PROBE | \
NETIF_MSG_LINK) NETIF_MSG_LINK)
...@@ -661,7 +656,7 @@ static irqreturn_t cp_interrupt (int irq, void *dev_instance) ...@@ -661,7 +656,7 @@ static irqreturn_t cp_interrupt (int irq, void *dev_instance)
if (status & (TxOK | TxErr | TxEmpty | SWInt)) if (status & (TxOK | TxErr | TxEmpty | SWInt))
cp_tx(cp); cp_tx(cp);
if (status & LinkChg) if (status & LinkChg)
mii_check_media(&cp->mii_if, netif_msg_link(cp), FALSE); mii_check_media(&cp->mii_if, netif_msg_link(cp), false);
spin_unlock(&cp->lock); spin_unlock(&cp->lock);
...@@ -1188,7 +1183,7 @@ static int cp_open (struct net_device *dev) ...@@ -1188,7 +1183,7 @@ static int cp_open (struct net_device *dev)
goto err_out_hw; goto err_out_hw;
netif_carrier_off(dev); netif_carrier_off(dev);
mii_check_media(&cp->mii_if, netif_msg_link(cp), TRUE); mii_check_media(&cp->mii_if, netif_msg_link(cp), true);
netif_start_queue(dev); netif_start_queue(dev);
return 0; return 0;
...@@ -2050,7 +2045,7 @@ static int cp_resume (struct pci_dev *pdev) ...@@ -2050,7 +2045,7 @@ static int cp_resume (struct pci_dev *pdev)
spin_lock_irqsave (&cp->lock, flags); spin_lock_irqsave (&cp->lock, flags);
mii_check_media(&cp->mii_if, netif_msg_link(cp), FALSE); mii_check_media(&cp->mii_if, netif_msg_link(cp), false);
spin_unlock_irqrestore (&cp->lock, flags); spin_unlock_irqrestore (&cp->lock, flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册