summaryrefslogtreecommitdiffstats
path: root/drivers/net/tokenring/ibmtr.c
diff options
context:
space:
mode:
authorRichard Knutsson <ricknu-0@student.ltu.se>2007-08-14 02:07:09 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 16:50:29 -0700
commit2d6d749d124d93bd03982467f515b1b88f4c1e44 (patch)
treeef64b24415a63f57d7c3e7e272a5b3e844e3b1d4 /drivers/net/tokenring/ibmtr.c
parentc821d55c67213e96e6e0feb7418746a25fea6e4d (diff)
downloadlinux-2d6d749d124d93bd03982467f515b1b88f4c1e44.tar.gz
linux-2d6d749d124d93bd03982467f515b1b88f4c1e44.tar.bz2
linux-2d6d749d124d93bd03982467f515b1b88f4c1e44.zip
drivers/net/tokenring: Convert to generic boolean
Convert to generic boolean Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/tokenring/ibmtr.c')
-rw-r--r--drivers/net/tokenring/ibmtr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/tokenring/ibmtr.c b/drivers/net/tokenring/ibmtr.c
index 51409698fe25..65e21eb7e685 100644
--- a/drivers/net/tokenring/ibmtr.c
+++ b/drivers/net/tokenring/ibmtr.c
@@ -116,9 +116,6 @@ in the event that chatty debug messages are desired - jjs 12/30/98 */
#define ENABLE_PAGING 1
#endif
-#define FALSE 0
-#define TRUE (!FALSE)
-
/* changes the output format of driver initialization */
#define TR_VERBOSE 0
@@ -1542,7 +1539,7 @@ static void initial_tok_int(struct net_device *dev)
ti->ring_speed = init_status & 0x01 ? 16 : 4;
DPRINTK("Initial interrupt : %d Mbps, shared RAM base %08x.\n",
ti->ring_speed, (unsigned int)dev->mem_start);
- ti->auto_speedsave=readb(ti->init_srb+INIT_STATUS_2_OFST)&4?TRUE:FALSE;
+ ti->auto_speedsave = (readb(ti->init_srb+INIT_STATUS_2_OFST) & 4) != 0;
if (ti->open_mode == MANUAL) wake_up(&ti->wait_for_reset);
else tok_open_adapter((unsigned long)dev);