Skip to contentSkip to conversation

block: Convert to generic boolean

PATCH In review Richard Knutsson 2 participants 3 messages May 1, 2007 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: Convert to generic boolean

Convert to generic boolean

---
Compile-tested but most arch/conf tested failed for other reasons then this Diffed against Linus' git-tree.

 ps2esdi.c |    8 ++++----
 z2ram.c   |    3 ---
 2 files changed, 4 insertions(+), 7 deletions(-)
drivers/block/ps2esdi.c +4 -4
index 688a4fb..96b40bc 100644
@@ -94,7 +94,7 @@ static u_int dma_arb_level;		/* DMA arbitration level */
 
 static DECLARE_WAIT_QUEUE_HEAD(ps2esdi_int);
 
-static int no_int_yet;
+static bool no_int_yet;
 static int ps2esdi_drives;
 static u_short io_base;
 static DEFINE_TIMER(esdi_timer, ps2esdi_reset_timer, 0, 0);
@@ -455,7 +455,7 @@ static void __init ps2esdi_get_device_cfg(void)
 	current_int_handler = ps2esdi_geometry_int_handler;
 	cmd_blk[0] = CMD_GET_DEV_CONFIG | 0x600;
 	cmd_blk[1] = 0;
-	no_int_yet = TRUE;
+	no_int_yet = true;
 	ps2esdi_out_cmd_blk(cmd_blk);
 	if (no_int_yet)
 		sleep_on(&ps2esdi_int);
@@ -464,7 +464,7 @@ static void __init ps2esdi_get_device_cfg(void)
 		printk("%s: Drive 1\n", DEVICE_NAME);	/*BA */
 		cmd_blk[0] = CMD_GET_DEV_CONFIG | (1 << 5) | 0x600;
 		cmd_blk[1] = 0;
-		no_int_yet = TRUE;
+		no_int_yet = true;
 		ps2esdi_out_cmd_blk(cmd_blk);
 		if (no_int_yet)
 			sleep_on(&ps2esdi_int);
@@ -843,7 +843,7 @@ static void ps2esdi_geometry_int_handler(u_int int_ret_code)
 	}
 
 	wake_up(&ps2esdi_int);
-	no_int_yet = FALSE;
+	no_int_yet = false;
 	outb(CTRL_ENABLE_INTR, ESDI_CONTROL);
 
 }
drivers/block/z2ram.c +0 -3
index 7cc2685..2abf94c 100644
@@ -44,9 +44,6 @@
 extern int m68k_realnum_memory;
 extern struct mem_info m68k_memory[NUM_MEMINFO];
 
-#define TRUE                  (1)
-#define FALSE                 (0)
-
 #define Z2MINOR_COMBINED      (0)
 #define Z2MINOR_Z2ONLY        (1)
 #define Z2MINOR_CHIPONLY      (2)
#1 lore raw
Quoted 6 lines · On Tue, 1 May 2007 21:08:36 +0200 (MEST) Richard Knutsson…

Convert to generic boolean

---
Compile-tested but most arch/conf tested failed for other reasons then this Diffed against Linus' git-tree.

If you can't build test stuff like ps2esdi then its best to leave it alone - we know the old driver code works/worked and in a few years even James won't have any working PS/2 hardware left

Alan

#2 lore raw
Quoted 12 lines · Alan Cox
Quoted 7 lines · On Tue, 1 May 2007 21:08:36 +0200 (MEST) Richard Knutsson…

Convert to generic boolean

---
Compile-tested but most arch/conf tested failed for other reasons then this Diffed against Linus' git-tree.

Quoted 4 lines

If you can't build test stuff like ps2esdi then its best to leave it alone - we know the old driver code works/worked and in a few years even James won't have any working PS/2 hardware left

Just thought the patch is so trivial that it obviously is "correct".

Richard Knutsson