diff options
Diffstat (limited to 'drivers/net/8139cp.c')
-rw-r--r-- | drivers/net/8139cp.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c index a804965e6542..58bbc3e6d0de 100644 --- a/drivers/net/8139cp.c +++ b/drivers/net/8139cp.c | |||
@@ -107,11 +107,6 @@ MODULE_PARM_DESC (multicast_filter_limit, "8139cp: maximum number of filtered mu | |||
107 | 107 | ||
108 | #define PFX DRV_NAME ": " | 108 | #define PFX DRV_NAME ": " |
109 | 109 | ||
110 | #ifndef TRUE | ||
111 | #define FALSE 0 | ||
112 | #define TRUE (!FALSE) | ||
113 | #endif | ||
114 | |||
115 | #define CP_DEF_MSG_ENABLE (NETIF_MSG_DRV | \ | 110 | #define CP_DEF_MSG_ENABLE (NETIF_MSG_DRV | \ |
116 | NETIF_MSG_PROBE | \ | 111 | NETIF_MSG_PROBE | \ |
117 | NETIF_MSG_LINK) | 112 | NETIF_MSG_LINK) |
@@ -661,7 +656,7 @@ static irqreturn_t cp_interrupt (int irq, void *dev_instance) | |||
661 | if (status & (TxOK | TxErr | TxEmpty | SWInt)) | 656 | if (status & (TxOK | TxErr | TxEmpty | SWInt)) |
662 | cp_tx(cp); | 657 | cp_tx(cp); |
663 | if (status & LinkChg) | 658 | if (status & LinkChg) |
664 | mii_check_media(&cp->mii_if, netif_msg_link(cp), FALSE); | 659 | mii_check_media(&cp->mii_if, netif_msg_link(cp), false); |
665 | 660 | ||
666 | spin_unlock(&cp->lock); | 661 | spin_unlock(&cp->lock); |
667 | 662 | ||
@@ -1188,7 +1183,7 @@ static int cp_open (struct net_device *dev) | |||
1188 | goto err_out_hw; | 1183 | goto err_out_hw; |
1189 | 1184 | ||
1190 | netif_carrier_off(dev); | 1185 | netif_carrier_off(dev); |
1191 | mii_check_media(&cp->mii_if, netif_msg_link(cp), TRUE); | 1186 | mii_check_media(&cp->mii_if, netif_msg_link(cp), true); |
1192 | netif_start_queue(dev); | 1187 | netif_start_queue(dev); |
1193 | 1188 | ||
1194 | return 0; | 1189 | return 0; |
@@ -2050,7 +2045,7 @@ static int cp_resume (struct pci_dev *pdev) | |||
2050 | 2045 | ||
2051 | spin_lock_irqsave (&cp->lock, flags); | 2046 | spin_lock_irqsave (&cp->lock, flags); |
2052 | 2047 | ||
2053 | mii_check_media(&cp->mii_if, netif_msg_link(cp), FALSE); | 2048 | mii_check_media(&cp->mii_if, netif_msg_link(cp), false); |
2054 | 2049 | ||
2055 | spin_unlock_irqrestore (&cp->lock, flags); | 2050 | spin_unlock_irqrestore (&cp->lock, flags); |
2056 | 2051 | ||