diff options
author | Richard Knutsson <ricknu-0@student.ltu.se> | 2007-05-19 16:26:40 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-08 22:16:38 -0400 |
commit | 2501f843b051621c5a6df7a092a64dfd78b201f7 (patch) | |
tree | 1a7553774a02eab156b63097192bb7bdb6c4bd33 | |
parent | 4117b5be4b877cec7c34058f0c239fcf78274e3d (diff) |
8139cp: Convert to generic boolean
Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
-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 | ||