]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drivers/net/tokenring: Convert to generic boolean
authorRichard Knutsson <ricknu-0@student.ltu.se>
Tue, 14 Aug 2007 00:07:09 +0000 (02:07 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:50:29 +0000 (16:50 -0700)
Convert to generic boolean

Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/tokenring/ibmtr.c

index 51409698fe25a0930aa0d8af96c35c4d6c8eb976..65e21eb7e685029b7735105031d0e046f8fa938d 100644 (file)
@@ -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);